public class ScriptConsole extends IOConsole implements IExecutionListener, IScriptEngineProvider, IPropertyChangeListener
| Modifier and Type | Field and Description |
|---|---|
static String |
CONSOLE_ACTIVE |
ENGINE_END, ENGINE_START, SCRIPT_END, SCRIPT_INJECTION_END, SCRIPT_INJECTION_START, SCRIPT_START| Modifier and Type | Method and Description |
|---|---|
static ScriptConsole |
create(IScriptEngine engine) |
static ScriptConsole |
create(String title,
IScriptEngine engine) |
static String |
getConsoleType() |
IOConsoleOutputStream |
getErrorStream() |
ILaunch |
getLaunch() |
IOConsoleOutputStream |
getOutputStream() |
IScriptEngine |
getScriptEngine() |
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 |
setLaunch(ILaunch launch) |
void |
setPageParticipant(ScriptConsolePageParticipant scriptConsolePageParticipant) |
void |
setScriptEngine(IScriptEngine scriptEngine) |
void |
terminate() |
clearConsole, createPage, getEncoding, getHighWaterMark, getInputStream, getLowWaterMark, newOutputStream, setInputStream, setWaterMarksaddHyperlink, addPatternMatchListener, getAttribute, getBackground, getConsoleWidth, getDocument, getFont, getHyperlink, getHyperlinks, getRegion, getSchedulingRule, getTabWidth, matcherFinished, partitionerFinished, removePatternMatchListener, setAttribute, setBackgrond, setBackground, setConsoleWidth, setFont, setTabWidthactivate, addPropertyChangeListener, destroy, firePropertyChange, getHelpContextId, getImageDescriptor, getName, getType, initialize, removePropertyChangeListenerpublic static final String CONSOLE_ACTIVE
public static ScriptConsole create(String title, IScriptEngine engine)
public static ScriptConsole create(IScriptEngine engine)
public static String getConsoleType()
public IOConsoleOutputStream getErrorStream()
public IOConsoleOutputStream getOutputStream()
public void notify(IScriptEngine engine, Script script, int status)
IExecutionListenernotify in interface IExecutionListenerengine - Script Enginescript - Script or nullstatus - Event Statuspublic void terminate()
public IScriptEngine getScriptEngine()
getScriptEngine in interface IScriptEngineProviderpublic void setLaunch(ILaunch launch)
public ILaunch getLaunch()
public void propertyChange(PropertyChangeEvent event)
propertyChange in interface IPropertyChangeListenerpublic void setScriptEngine(IScriptEngine scriptEngine)
public void setPageParticipant(ScriptConsolePageParticipant scriptConsolePageParticipant)