Java Code Examples for org.pentaho.di.core.EngineMetaInterface#setInternalKettleVariables()
The following examples show how to use
org.pentaho.di.core.EngineMetaInterface#setInternalKettleVariables() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: SpoonTabsDelegate.java From pentaho-kettle with Apache License 2.0 | 6 votes |
public void tabSelected( TabItem item ) { // See which core objects to show // for ( TabMapEntry entry : tabMap ) { boolean isAbstractGraph = ( entry.getObject() instanceof AbstractGraph ); if ( item.equals( entry.getTabItem() ) ) { if ( isAbstractGraph ) { EngineMetaInterface meta = entry.getObject().getMeta(); if ( meta != null ) { meta.setInternalKettleVariables(); } if ( spoon.getCoreObjectsState() != SpoonInterface.STATE_CORE_OBJECTS_SPOON ) { spoon.refreshCoreObjects(); } ( (AbstractGraph) entry.getObject() ).setFocus(); } break; } } // Also refresh the tree spoon.refreshTree(); spoon.setShellText(); // calls also enableMenus() and markTabsChanged() }
Example 2
Source File: SpoonTransformationDelegate.java From pentaho-kettle with Apache License 2.0 | 5 votes |
public void tabSelected( TabItem item ) { List<TabMapEntry> collection = spoon.delegates.tabs.getTabs(); // See which core objects to show // for ( TabMapEntry entry : collection ) { if ( item.equals( entry.getTabItem() ) ) { // TabItemInterface itemInterface = entry.getObject(); // // Another way to implement this may be to keep track of the // state of the core object tree in method // addCoreObjectsToTree() // 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(); }