public class ScriptShell extends ViewPart implements IPropertyChangeListener, IScriptEngineProvider, IExecutionListener
| Modifier and Type | Field and Description |
|---|---|
static 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() |
StyledText |
getOutput() |
IScriptEngine |
getScriptEngine() |
String |
getSelectedText()
Get the text selected in the output pane.
|
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(String id) |
void |
setFocus() |
void |
setPrintLock(boolean lock)
Set/unset the print lock feature.
|
void |
setScrollLock(boolean lock)
Set/unset the scroll lock feature.
|
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 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 setScrollLock(boolean lock)
lock - true when auto scrolling shall be lockedpublic final void setPrintLock(boolean lock)
lock - true when printing shall be disabledpublic final String getSelectedText()
public final void toggleDropinsPane()
public final void propertyChange(PropertyChangeEvent event)
propertyChange in interface IPropertyChangeListenerpublic StyledText getOutput()
public 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(String id)