コード例 #1
0
 private IResources initResources() {
   ProxySplashscreen.getInstance().displayStatusMessage("Loading Resources..."); // $NON-NLS-1$
   AnathemaResources resources = new AnathemaResources();
   for (Extension extension :
       pluginManager.getExtension(IPluginConstants.PLUGIN_CORE, EXTENSION_POINT_RESOURCES)) {
     for (Parameter param : extension.getParameters(PARAM_BUNDLE)) {
       resources.addResourceBundle(param.valueAsString(), pluginManager.getClassLoader(extension));
     }
   }
   return resources;
 }
コード例 #2
0
 public AnathemaInitializer(PluginManager manager, IAnathemaPreferences anathemaPreferences)
     throws InitializationException {
   this.pluginManager = new AnathemaPluginManager(manager);
   pluginManager.activatePlugins();
   this.itemTypeCollection =
       new ItemTypeConfigurationCollection(pluginManager, AnathemaEnvironment.isDevelopment());
   this.extensionCollection = new AnathemaExtensionCollection(pluginManager);
   this.anathemaPreferences = anathemaPreferences;
 }