Class AbstractDropin
java.lang.Object
org.eclipse.ease.ui.views.shell.dropins.AbstractDropin
- All Implemented Interfaces:
IExecutionListener
,IShellDropin
public abstract class AbstractDropin extends Object implements IShellDropin, IExecutionListener
-
Field Summary
Fields 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.Composite
createPartControl(org.eclipse.ui.IWorkbenchPartSite site, org.eclipse.swt.widgets.Composite parent)
Create the drop-in visual components.void
notify(IScriptEngine engine, Script script, int status)
Notifies the listeners when script execution started/ended or when the engine itself is started/ended.void
setHidden(boolean hidden)
void
setScriptEngine(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, wait
Methods inherited from interface org.eclipse.ease.ui.views.shell.dropins.IShellDropin
getTitle
-
Constructor Details
-
AbstractDropin
public AbstractDropin()
-
-
Method Details
-
setScriptEngine
Description copied from interface:IShellDropin
Sets 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:
setScriptEngine
in interfaceIShellDropin
- Parameters:
engine
- script engine used in shell view
-
createPartControl
public org.eclipse.swt.widgets.Composite createPartControl(org.eclipse.ui.IWorkbenchPartSite site, org.eclipse.swt.widgets.Composite parent)Description copied from interface:IShellDropin
Create the drop-in visual components.- Specified by:
createPartControl
in 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:IExecutionListener
Notifies the listeners when script execution started/ended or when the engine itself is started/ended.- Specified by:
notify
in interfaceIExecutionListener
- Parameters:
engine
- Script Enginescript
- Script ornull
status
- Event Status
-
setHidden
public void setHidden(boolean hidden)- Specified by:
setHidden
in interfaceIShellDropin
-