use of org.pentaho.di.ui.spoon.TabMapEntry in project pentaho-kettle by pentaho.
the class SpoonTransformationDelegate method tabSelected.
public void tabSelected(TabItem item) {
List<TabMapEntry> collection = spoon.delegates.tabs.getTabs();
//
for (TabMapEntry entry : collection) {
if (item.equals(entry.getTabItem())) {
//
if (entry.getObject() instanceof TransGraph || entry.getObject() instanceof JobGraph) {
EngineMetaInterface meta = entry.getObject().getMeta();
if (meta != null) {
meta.setInternalKettleVariables();
}
if (spoon.getCoreObjectsState() != SpoonInterface.STATE_CORE_OBJECTS_SPOON) {
spoon.refreshCoreObjects();
}
}
}
}
// Also refresh the tree
spoon.refreshTree();
spoon.enableMenus();
}
Aggregations