org.pentaho.di.ui.spoon.delegates
Class SpoonTabsDelegate

java.lang.Object
  extended by org.pentaho.di.ui.spoon.delegates.SpoonDelegate
      extended by 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
loggingObject
 
Constructor Summary
SpoonTabsDelegate(Spoon spoon)
           
 
Method Summary
 boolean addSpoonBrowser(String name, String urlString)
           
 boolean addSpoonBrowser(String name, String urlString, boolean isURL, LocationListener listener)
           
 boolean addSpoonBrowser(String name, String urlString, LocationListener listener)
           
 void addTab(TabMapEntry entry)
           
 TabMapEntry findTabForTransformation(TransMeta trans)
          Finds the tab for the transformation that matches the metadata provided (either the file must be the same or the repository id).
 TabMapEntry findTabMapEntry(Object managedObject)
           
 TabMapEntry findTabMapEntry(String tabItemText, TabMapEntry.ObjectType objectType)
           
 EngineMetaInterface getActiveMeta()
           
 TabMapEntry getTab(org.pentaho.xul.swt.tab.TabItem tabItem)
           
 List<TabMapEntry> getTabs()
           
 String makeSlaveTabName(SlaveServer slaveServer)
           
 String makeTabName(EngineMetaInterface transMeta, boolean showLocation)
           
 void removeTab(TabMapEntry tabMapEntry)
           
 void renameTabs()
          Rename the tabs
 boolean tabClose(org.pentaho.xul.swt.tab.TabItem item)
           
 void tabSelected(org.pentaho.xul.swt.tab.TabItem item)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpoonTabsDelegate

public SpoonTabsDelegate(Spoon spoon)
Method Detail

tabClose

public boolean tabClose(org.pentaho.xul.swt.tab.TabItem item)
                 throws KettleException
Throws:
KettleException

removeTab

public void removeTab(TabMapEntry tabMapEntry)

getTabs

public List<TabMapEntry> getTabs()

getTab

public TabMapEntry getTab(org.pentaho.xul.swt.tab.TabItem tabItem)

getActiveMeta

public EngineMetaInterface getActiveMeta()

makeSlaveTabName

public String makeSlaveTabName(SlaveServer slaveServer)

addSpoonBrowser

public boolean addSpoonBrowser(String name,
                               String urlString)

addSpoonBrowser

public boolean addSpoonBrowser(String name,
                               String urlString,
                               LocationListener listener)

addSpoonBrowser

public boolean addSpoonBrowser(String name,
                               String urlString,
                               boolean isURL,
                               LocationListener listener)

findTabMapEntry

public TabMapEntry findTabMapEntry(String tabItemText,
                                   TabMapEntry.ObjectType objectType)

findTabMapEntry

public TabMapEntry findTabMapEntry(Object managedObject)

findTabForTransformation

public TabMapEntry findTabForTransformation(TransMeta trans)
                                     throws 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 trans or null if no tab exists.
Throws:
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(EngineMetaInterface transMeta,
                          boolean showLocation)

tabSelected

public void tabSelected(org.pentaho.xul.swt.tab.TabItem item)