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);
}
}
}
Aggregations