Search in sources :

Example 1 with PluginFolder

use of org.pentaho.di.core.plugins.PluginFolder in project pentaho-kettle by pentaho.

the class Spoon method registerUIPluginObjectTypes.

/**
 * The core plugin types don't know about UI classes. This method adds those in before initialization.
 *
 * TODO: create a SpoonLifecycle listener that can notify interested parties of a pre-initialization state so this can
 * happen in those listeners.
 */
private static void registerUIPluginObjectTypes() {
    RepositoryPluginType repositoryPluginType = RepositoryPluginType.getInstance();
    repositoryPluginType.addObjectType(RepositoryRevisionBrowserDialogInterface.class, "version-browser-classname");
    repositoryPluginType.addObjectType(RepositoryDialogInterface.class, "dialog-classname");
    PluginRegistry.addPluginType(SpoonPluginType.getInstance());
    SpoonPluginType.getInstance().getPluginFolders().add(new PluginFolder("plugins/repositories", false, true));
    LifecyclePluginType.getInstance().getPluginFolders().add(new PluginFolder("plugins/spoon", false, true));
    LifecyclePluginType.getInstance().getPluginFolders().add(new PluginFolder("plugins/repositories", false, true));
    PluginRegistry.addPluginType(JobDialogPluginType.getInstance());
    PluginRegistry.addPluginType(TransDialogPluginType.getInstance());
}
Also used : PluginFolder(org.pentaho.di.core.plugins.PluginFolder) RepositoryPluginType(org.pentaho.di.core.plugins.RepositoryPluginType)

Aggregations

PluginFolder (org.pentaho.di.core.plugins.PluginFolder)1 RepositoryPluginType (org.pentaho.di.core.plugins.RepositoryPluginType)1