public class ScriptShell extends ViewPart implements IPropertyChangeListener, IScriptEngineProvider, IExecutionListener
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
VIEW_ID |
ENGINE_END, ENGINE_START, SCRIPT_END, SCRIPT_INJECTION_END, SCRIPT_INJECTION_START, SCRIPT_STARTPROP_TITLE| Constructor and Description |
|---|
ScriptShell()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clearOutput()
Clear the output text.
|
void |
createPartControl(Composite parent) |
void |
dispose() |
IScriptEngine |
getScriptEngine() |
void |
init(IViewSite site,
IMemento memento) |
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 |
propertyChange(PropertyChangeEvent event) |
void |
runStartupCommands() |
void |
saveState(IMemento memento) |
void |
setEngine(java.lang.String id) |
void |
setFocus() |
void |
stopScriptEngine() |
void |
toggleDropinsPane() |
getViewSite, init, setInitializationDataaddPartPropertyListener, addPropertyListener, getAdapter, getContentDescription, getOrientation, getPartName, getPartProperties, getPartProperty, getSite, getTitle, getTitleImage, getTitleToolTip, removePartPropertyListener, removePropertyListener, setPartProperty, showBusyequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddPropertyListener, getSite, getTitle, getTitleImage, getTitleToolTip, removePropertyListenergetAdapterpublic static final java.lang.String VIEW_ID
public final void init(IViewSite site, IMemento memento) throws PartInitException
init in interface IViewPartinit in class ViewPartPartInitExceptionpublic final void saveState(IMemento memento)
public final void createPartControl(Composite parent)
createPartControl in interface IWorkbenchPartcreatePartControl in class WorkbenchPartpublic void runStartupCommands()
public final void dispose()
dispose in interface IWorkbenchPartdispose in class WorkbenchPartpublic final void setFocus()
setFocus in interface IWorkbenchPartsetFocus in class WorkbenchPartpublic final void clearOutput()
public final void toggleDropinsPane()
public final void propertyChange(PropertyChangeEvent event)
propertyChange in interface IPropertyChangeListenerpublic void stopScriptEngine()
public IScriptEngine getScriptEngine()
getScriptEngine in interface IScriptEngineProviderpublic void notify(IScriptEngine engine, Script script, int status)
IExecutionListenernotify in interface IExecutionListenerengine - Script Enginescript - Script or nullstatus - Event Statuspublic final void setEngine(java.lang.String id)