Class SpoonTabsDelegate
- java.lang.Object
-
- org.pentaho.di.ui.spoon.delegates.SpoonDelegate
-
- org.pentaho.di.ui.spoon.delegates.SpoonTabsDelegate
-
public class SpoonTabsDelegate extends SpoonDelegate
-
-
Field Summary
-
Fields inherited from class org.pentaho.di.ui.spoon.delegates.SpoonDelegate
log, loggingObject, spoon
-
-
Constructor Summary
Constructors Constructor Description SpoonTabsDelegate(Spoon spoon)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaddSpoonBrowser(String name, String urlString)booleanaddSpoonBrowser(String name, String urlString, boolean showControls)booleanaddSpoonBrowser(String name, String urlString, boolean isURL, org.eclipse.swt.browser.LocationListener listener)booleanaddSpoonBrowser(String name, String urlString, boolean isURL, org.eclipse.swt.browser.LocationListener listener, boolean showControls)booleanaddSpoonBrowser(String name, String urlString, boolean isURL, org.eclipse.swt.browser.LocationListener listener, Map<String,Runnable> functions, boolean showControls)booleanaddSpoonBrowser(String name, String urlString, org.eclipse.swt.browser.LocationListener listener)booleanaddSpoonBrowser(String name, String urlString, org.eclipse.swt.browser.LocationListener listener, boolean showControls)voidaddTab(TabMapEntry entry)TabMapEntryfindTabForTransformation(org.pentaho.di.trans.TransMeta trans)Finds the tab for the transformation that matches the metadata provided (either the file must be the same or the repository id).TabMapEntryfindTabMapEntry(Object managedObject)TabMapEntryfindTabMapEntry(String tabItemText, TabMapEntry.ObjectType objectType)org.pentaho.di.core.EngineMetaInterfacegetActiveMeta()TabMapEntrygetTab(TabItem tabItem)List<TabMapEntry>getTabs()StringmakeSlaveTabName(org.pentaho.di.cluster.SlaveServer slaveServer)StringmakeTabName(org.pentaho.di.core.EngineMetaInterface transMeta, boolean showLocation)voidremoveTab(TabMapEntry tabMapEntry)voidrenameTabs()Rename the tabsbooleantabClose(TabItem item)booleantabClose(TabItem item, boolean force)voidtabSelected(TabItem item)-
Methods inherited from class org.pentaho.di.ui.spoon.delegates.SpoonDelegate
getMaxTabLength
-
-
-
-
Constructor Detail
-
SpoonTabsDelegate
public SpoonTabsDelegate(Spoon spoon)
-
-
Method Detail
-
tabClose
public boolean tabClose(TabItem item) throws org.pentaho.di.core.exception.KettleException
- Throws:
org.pentaho.di.core.exception.KettleException
-
tabClose
public boolean tabClose(TabItem item, boolean force) throws org.pentaho.di.core.exception.KettleException
- Throws:
org.pentaho.di.core.exception.KettleException
-
removeTab
public void removeTab(TabMapEntry tabMapEntry)
-
getTabs
public List<TabMapEntry> getTabs()
-
getTab
public TabMapEntry getTab(TabItem tabItem)
-
getActiveMeta
public org.pentaho.di.core.EngineMetaInterface getActiveMeta()
-
makeSlaveTabName
public String makeSlaveTabName(org.pentaho.di.cluster.SlaveServer slaveServer)
-
addSpoonBrowser
public boolean addSpoonBrowser(String name, String urlString, boolean showControls)
-
addSpoonBrowser
public boolean addSpoonBrowser(String name, String urlString, org.eclipse.swt.browser.LocationListener listener)
-
addSpoonBrowser
public boolean addSpoonBrowser(String name, String urlString, org.eclipse.swt.browser.LocationListener listener, boolean showControls)
-
addSpoonBrowser
public boolean addSpoonBrowser(String name, String urlString, boolean isURL, org.eclipse.swt.browser.LocationListener listener)
-
addSpoonBrowser
public boolean addSpoonBrowser(String name, String urlString, boolean isURL, org.eclipse.swt.browser.LocationListener listener, boolean showControls)
-
addSpoonBrowser
public boolean addSpoonBrowser(String name, String urlString, boolean isURL, org.eclipse.swt.browser.LocationListener listener, Map<String,Runnable> functions, boolean showControls)
-
findTabMapEntry
public TabMapEntry findTabMapEntry(String tabItemText, TabMapEntry.ObjectType objectType)
-
findTabMapEntry
public TabMapEntry findTabMapEntry(Object managedObject)
-
findTabForTransformation
public TabMapEntry findTabForTransformation(org.pentaho.di.trans.TransMeta trans) throws org.pentaho.di.core.exception.KettleFileException
Finds the tab for the transformation that matches the metadata provided (either the file must be the same or the repository id).- Parameters:
trans- Transformation metadata to look for- Returns:
- Tab with transformation open whose metadata matches
transornullif no tab exists. - Throws:
org.pentaho.di.core.exception.KettleFileException- If there is a problem loading the file object for an open transformation with an invalid a filename.
-
renameTabs
public void renameTabs()
Rename the tabs
-
addTab
public void addTab(TabMapEntry entry)
-
makeTabName
public String makeTabName(org.pentaho.di.core.EngineMetaInterface transMeta, boolean showLocation)
-
tabSelected
public void tabSelected(TabItem item)
-
-