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, setWaterMarks
addHyperlink, addPatternMatchListener, getAttribute, getBackground, getConsoleWidth, getDocument, getFont, getHyperlink, getHyperlinks, getRegion, getSchedulingRule, getTabWidth, matcherFinished, partitionerFinished, removePatternMatchListener, setAttribute, setBackgrond, setBackground, setConsoleWidth, setFont, setTabWidth
activate, addPropertyChangeListener, destroy, firePropertyChange, getHelpContextId, getImageDescriptor, getName, getType, initialize, removePropertyChangeListener
public 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)
IExecutionListener
notify
in interface IExecutionListener
engine
- Script Enginescript
- Script or null
status
- Event Statuspublic void terminate()
public IScriptEngine getScriptEngine()
getScriptEngine
in interface IScriptEngineProvider
public void setLaunch(ILaunch launch)
public ILaunch getLaunch()
public void propertyChange(PropertyChangeEvent event)
propertyChange
in interface IPropertyChangeListener
public void setScriptEngine(IScriptEngine scriptEngine)
public void setPageParticipant(ScriptConsolePageParticipant scriptConsolePageParticipant)