Package org.eclipse.ease.ui.console
Class ScriptConsole
java.lang.Object
org.eclipse.ui.console.AbstractConsole
org.eclipse.ui.console.TextConsole
org.eclipse.ui.console.IOConsole
org.eclipse.ease.ui.console.ScriptConsole
- All Implemented Interfaces:
EventListener
,IExecutionListener
,IScriptEngineProvider
,org.eclipse.jface.util.IPropertyChangeListener
,org.eclipse.ui.console.IConsole
public class ScriptConsole extends org.eclipse.ui.console.IOConsole implements IExecutionListener, IScriptEngineProvider, org.eclipse.jface.util.IPropertyChangeListener
-
Field Summary
Fields Modifier and Type Field Description static String
CONSOLE_ACTIVE
Fields inherited from interface org.eclipse.ease.IExecutionListener
ENGINE_END, ENGINE_START, SCRIPT_END, SCRIPT_INJECTION_END, SCRIPT_INJECTION_START, SCRIPT_START
-
Method Summary
Modifier and Type Method Description static ScriptConsole
create(String title, IScriptEngine engine)
static ScriptConsole
create(IScriptEngine engine)
static String
getConsoleType()
org.eclipse.ui.console.IOConsoleOutputStream
getErrorStream()
org.eclipse.debug.core.ILaunch
getLaunch()
org.eclipse.ui.console.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(org.eclipse.jface.util.PropertyChangeEvent event)
void
setLaunch(org.eclipse.debug.core.ILaunch launch)
void
setPageParticipant(ScriptConsolePageParticipant scriptConsolePageParticipant)
void
setScriptEngine(IScriptEngine scriptEngine)
void
terminate()
Methods inherited from class org.eclipse.ui.console.IOConsole
clearConsole, createPage, getCharset, getEncoding, getHighWaterMark, getInputStream, getLowWaterMark, isCarriageReturnAsControlCharacter, isHandleControlCharacters, newOutputStream, setCarriageReturnAsControlCharacter, setHandleControlCharacters, setInputStream, setWaterMarks
Methods inherited from class org.eclipse.ui.console.TextConsole
addHyperlink, addPatternMatchListener, getAttribute, getBackground, getConsoleWidth, getDocument, getFont, getHyperlink, getHyperlinks, getRegion, getSchedulingRule, getTabWidth, isConsoleAutoScrollLock, matcherFinished, partitionerFinished, removePatternMatchListener, setAttribute, setBackgrond, setBackground, setConsoleAutoScrollLock, setConsoleWidth, setFont, setTabWidth
Methods inherited from class org.eclipse.ui.console.AbstractConsole
activate, addPropertyChangeListener, destroy, firePropertyChange, getHelpContextId, getImageDescriptor, getName, getType, initialize, removePropertyChangeListener
-
Field Details
-
CONSOLE_ACTIVE
- See Also:
- Constant Field Values
-
-
Method Details
-
create
-
create
-
getConsoleType
-
getErrorStream
public org.eclipse.ui.console.IOConsoleOutputStream getErrorStream() -
getOutputStream
public org.eclipse.ui.console.IOConsoleOutputStream getOutputStream() -
notify
Description copied from interface:IExecutionListener
Notifies the listeners when script execution started/ended or when the engine itself is started/ended.- Specified by:
notify
in interfaceIExecutionListener
- Parameters:
engine
- Script Enginescript
- Script ornull
status
- Event Status
-
terminate
public void terminate() -
getScriptEngine
- Specified by:
getScriptEngine
in interfaceIScriptEngineProvider
-
setLaunch
public void setLaunch(org.eclipse.debug.core.ILaunch launch) -
getLaunch
public org.eclipse.debug.core.ILaunch getLaunch() -
propertyChange
public void propertyChange(org.eclipse.jface.util.PropertyChangeEvent event)- Specified by:
propertyChange
in interfaceorg.eclipse.jface.util.IPropertyChangeListener
-
setScriptEngine
-
setPageParticipant
-