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_START
PROP_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, setInitializationData
addPartPropertyListener, addPropertyListener, getAdapter, getContentDescription, getOrientation, getPartName, getPartProperties, getPartProperty, getSite, getTitle, getTitleImage, getTitleToolTip, removePartPropertyListener, removePropertyListener, setPartProperty, showBusy
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addPropertyListener, getSite, getTitle, getTitleImage, getTitleToolTip, removePropertyListener
getAdapter
public static final String VIEW_ID
public final void init(IViewSite site, IMemento memento) throws PartInitException
init
in interface IViewPart
init
in class ViewPart
PartInitException
public final void saveState(IMemento memento)
public final void createPartControl(Composite parent)
createPartControl
in interface IWorkbenchPart
createPartControl
in class WorkbenchPart
public void runStartupCommands()
public final void dispose()
dispose
in interface IWorkbenchPart
dispose
in class WorkbenchPart
public final void setFocus()
setFocus
in interface IWorkbenchPart
setFocus
in class WorkbenchPart
public 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 IPropertyChangeListener
public StyledText getOutput()
public void stopScriptEngine()
public IScriptEngine getScriptEngine()
getScriptEngine
in interface IScriptEngineProvider
public void notify(IScriptEngine engine, Script script, int status)
IExecutionListener
notify
in interface IExecutionListener
engine
- Script Enginescript
- Script or null
status
- Event Statuspublic final void setEngine(String id)