public class MainSpoonPerspective extends Object implements SpoonPerspective
| Constructor and Description |
|---|
MainSpoonPerspective(org.eclipse.swt.widgets.Composite ui,
TabSet tabfolder) |
| Modifier and Type | Method and Description |
|---|---|
void |
addPerspectiveListener(SpoonPerspectiveListener listener)
Allows outside code to register to for activation events for this perspective.
|
org.pentaho.di.core.EngineMetaInterface |
getActiveMeta()
Return the active EngineMeta in the case of perspectives with save-able content.
|
String |
getDisplayName(Locale l)
Returns a localized name for the perspective
|
List<org.pentaho.ui.xul.impl.XulEventHandler> |
getEventHandlers()
Returns a list of Xul Event Handlers (controllers) to be added to Xul Containers in Spoon.
|
String |
getId()
Returns a unique identifier for this perspective
|
List<org.pentaho.ui.xul.XulOverlay> |
getOverlays()
A list of Xul Overlays to be applied and removed when the perspective is loaded or unloaded
|
InputStream |
getPerspectiveIcon()
Perspectives will be represented in spoon by an icon on the main toolbar.
|
org.eclipse.swt.widgets.Composite |
getUI()
Returns the main UI for the perspective.
|
void |
setActive(boolean active)
Called by Spoon whenever the active state of a perspective changes.
|
public static final String ID
public MainSpoonPerspective(org.eclipse.swt.widgets.Composite ui,
TabSet tabfolder)
public String getId()
SpoonPerspectivegetId in interface SpoonPerspectivepublic String getDisplayName(Locale l)
SpoonPerspectivegetDisplayName in interface SpoonPerspectivel - current Localepublic InputStream getPerspectiveIcon()
SpoonPerspectivegetPerspectiveIcon in interface SpoonPerspectivepublic org.eclipse.swt.widgets.Composite getUI()
SpoonPerspectivegetUI in interface SpoonPerspectivepublic void setActive(boolean active)
SpoonPerspectivesetActive in interface SpoonPerspectivepublic List<org.pentaho.ui.xul.impl.XulEventHandler> getEventHandlers()
SpoonPerspectivegetEventHandlers in interface SpoonPerspectivepublic List<org.pentaho.ui.xul.XulOverlay> getOverlays()
SpoonPerspectivegetOverlays in interface SpoonPerspectivepublic void addPerspectiveListener(SpoonPerspectiveListener listener)
SpoonPerspectiveaddPerspectiveListener in interface SpoonPerspectivepublic org.pentaho.di.core.EngineMetaInterface getActiveMeta()
SpoonPerspectivegetActiveMeta in interface SpoonPerspective