Class AbstractDropin
java.lang.Object
org.eclipse.ease.ui.views.shell.dropins.AbstractDropin
- All Implemented Interfaces:
IExecutionListener,IScriptEngineProvider,IShellDropin
public abstract class AbstractDropin extends Object implements IShellDropin, IExecutionListener, IScriptEngineProvider
-
Field Summary
Fields Modifier and Type Field Description static org.eclipse.jface.viewers.ISelectionProviderEMPTY_SELECTION_PROVIDERFields inherited from interface org.eclipse.ease.IExecutionListener
ENGINE_END, ENGINE_START, SCRIPT_END, SCRIPT_INJECTION_END, SCRIPT_INJECTION_START, SCRIPT_START -
Constructor Summary
Constructors Constructor Description AbstractDropin() -
Method Summary
Modifier and Type Method Description org.eclipse.swt.widgets.CompositegetPartControl(org.eclipse.ui.IWorkbenchPartSite site, org.eclipse.swt.widgets.Composite parent)Get the drop-in visual root component.IScriptEnginegetScriptEngine()org.eclipse.jface.viewers.ISelectionProvidergetSelectionProvider()Get the selection provider of this dropin or null.voidnotify(IScriptEngine engine, Script script, int status)Notifies the listeners when script execution started/ended or when the engine itself is started/ended.voidsetHidden(boolean hidden)voidsetScriptEngine(IReplEngine engine)Sets the script engine for this drop-in.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.ease.ui.views.shell.dropins.IShellDropin
getTitle
-
Field Details
-
EMPTY_SELECTION_PROVIDER
public static final org.eclipse.jface.viewers.ISelectionProvider EMPTY_SELECTION_PROVIDER
-
-
Constructor Details
-
AbstractDropin
public AbstractDropin()
-
-
Method Details
-
setScriptEngine
Description copied from interface:IShellDropinSets the script engine for this drop-in. If the engine is changed during runtime, this method gets called another time. For all other scripting events this drop-in should register a listener on the script engine.- Specified by:
setScriptEnginein interfaceIShellDropin- Parameters:
engine- script engine used in shell view
-
getScriptEngine
- Specified by:
getScriptEnginein interfaceIScriptEngineProvider
-
getPartControl
public org.eclipse.swt.widgets.Composite getPartControl(org.eclipse.ui.IWorkbenchPartSite site, org.eclipse.swt.widgets.Composite parent)Description copied from interface:IShellDropinGet the drop-in visual root component. Querying this method multiple times always returns the same object.- Specified by:
getPartControlin interfaceIShellDropin- Parameters:
site- workbench part site this drop-in is registered toparent- parent container to render in- Returns:
- composite created within parent container (may not be
null)
-
notify
Description copied from interface:IExecutionListenerNotifies the listeners when script execution started/ended or when the engine itself is started/ended.- Specified by:
notifyin interfaceIExecutionListener- Parameters:
engine- Script Enginescript- Script ornullstatus- Event Status
-
setHidden
public void setHidden(boolean hidden)- Specified by:
setHiddenin interfaceIShellDropin
-
getSelectionProvider
public org.eclipse.jface.viewers.ISelectionProvider getSelectionProvider()Description copied from interface:IShellDropinGet the selection provider of this dropin or null.- Specified by:
getSelectionProviderin interfaceIShellDropin- Returns:
- selection provider or
null
-