Search in sources :

Example 1 with SelectionTreeExtension

use of org.pentaho.di.ui.spoon.SelectionTreeExtension in project pentaho-kettle by pentaho.

the class RunConfigurationViewTreeExtension method callExtensionPoint.

@Override
public void callExtensionPoint(LogChannelInterface log, Object object) throws KettleException {
    SelectionTreeExtension selectionTreeExtension = (SelectionTreeExtension) object;
    if (selectionTreeExtension.getAction().equals(Spoon.REFRESH_SELECTION_EXTENSION)) {
        refreshTree(selectionTreeExtension);
    }
    if (selectionTreeExtension.getAction().equals(Spoon.EDIT_SELECTION_EXTENSION)) {
        if (selectionTreeExtension.getSelection() instanceof RunConfiguration) {
            RunConfiguration runConfiguration = (RunConfiguration) selectionTreeExtension.getSelection();
            runConfigurationDelegate.edit(runConfiguration);
        }
    }
}
Also used : SelectionTreeExtension(org.pentaho.di.ui.spoon.SelectionTreeExtension) RunConfiguration(org.pentaho.di.engine.configuration.api.RunConfiguration)

Aggregations

RunConfiguration (org.pentaho.di.engine.configuration.api.RunConfiguration)1 SelectionTreeExtension (org.pentaho.di.ui.spoon.SelectionTreeExtension)1