Package org.eclipse.ease.ui.view
Class ScriptShell
java.lang.Object
org.eclipse.core.commands.common.EventManager
org.eclipse.ui.part.WorkbenchPart
org.eclipse.ui.part.ViewPart
org.eclipse.ease.ui.view.ScriptShell
- All Implemented Interfaces:
EventListener
,org.eclipse.core.runtime.IAdaptable
,org.eclipse.core.runtime.IExecutableExtension
,IExecutionListener
,IScriptEngineProvider
,org.eclipse.jface.util.IPropertyChangeListener
,org.eclipse.ui.IPersistable
,org.eclipse.ui.IViewPart
,org.eclipse.ui.IWorkbenchPart
,org.eclipse.ui.IWorkbenchPart2
,org.eclipse.ui.IWorkbenchPart3
,org.eclipse.ui.part.IWorkbenchPartOrientation
,org.eclipse.ui.views.properties.tabbed.ITabbedPropertySheetPageContributor
public class ScriptShell extends org.eclipse.ui.part.ViewPart implements org.eclipse.jface.util.IPropertyChangeListener, IScriptEngineProvider, IExecutionListener, org.eclipse.ui.views.properties.tabbed.ITabbedPropertySheetPageContributor
The JavaScript shell allows to interactively execute JavaScript code.
-
Field Summary
Fields inherited from interface org.eclipse.ease.IExecutionListener
ENGINE_END, ENGINE_START, SCRIPT_END, SCRIPT_INJECTION_END, SCRIPT_INJECTION_START, SCRIPT_START
Fields inherited from interface org.eclipse.ui.IWorkbenchPart
PROP_TITLE
-
Constructor Summary
Constructors Constructor Description ScriptShell()
Default constructor. -
Method Summary
Modifier and Type Method Description void
changePartName(String newPartName)
void
clearOutput()
void
createPartControl(org.eclipse.swt.widgets.Composite parent)
void
dispose()
<T> T
getAdapter(Class<T> adapter)
String
getContributorId()
IScriptEngine
getScriptEngine()
void
init(org.eclipse.ui.IViewSite site, org.eclipse.ui.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(org.eclipse.jface.util.PropertyChangeEvent event)
void
runStartupCommands()
void
saveState(org.eclipse.ui.IMemento memento)
void
setEngine(String id)
void
setFocus()
void
showDropinsPane(boolean show)
void
stopScriptEngine()
Methods inherited from class org.eclipse.ui.part.ViewPart
getViewSite, init, setInitializationData
Methods inherited from class org.eclipse.ui.part.WorkbenchPart
addPartPropertyListener, addPropertyListener, getContentDescription, getOrientation, getPartName, getPartProperties, getPartProperty, getSite, getTitle, getTitleImage, getTitleToolTip, removePartPropertyListener, removePropertyListener, setPartProperty, showBusy
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.eclipse.ui.IWorkbenchPart
addPropertyListener, getSite, getTitle, getTitleImage, getTitleToolTip, removePropertyListener
-
Field Details
-
VIEW_ID
- See Also:
- Constant Field Values
-
-
Constructor Details
-
ScriptShell
public ScriptShell()Default constructor.
-
-
Method Details
-
init
public final void init(org.eclipse.ui.IViewSite site, org.eclipse.ui.IMemento memento) throws org.eclipse.ui.PartInitException- Specified by:
init
in interfaceorg.eclipse.ui.IViewPart
- Overrides:
init
in classorg.eclipse.ui.part.ViewPart
- Throws:
org.eclipse.ui.PartInitException
-
saveState
public final void saveState(org.eclipse.ui.IMemento memento)- Specified by:
saveState
in interfaceorg.eclipse.ui.IPersistable
- Specified by:
saveState
in interfaceorg.eclipse.ui.IViewPart
- Overrides:
saveState
in classorg.eclipse.ui.part.ViewPart
-
createPartControl
public final void createPartControl(org.eclipse.swt.widgets.Composite parent)- Specified by:
createPartControl
in interfaceorg.eclipse.ui.IWorkbenchPart
- Specified by:
createPartControl
in classorg.eclipse.ui.part.WorkbenchPart
-
runStartupCommands
public void runStartupCommands() -
dispose
public final void dispose()- Specified by:
dispose
in interfaceorg.eclipse.ui.IWorkbenchPart
- Overrides:
dispose
in classorg.eclipse.ui.part.WorkbenchPart
-
setFocus
public final void setFocus()- Specified by:
setFocus
in interfaceorg.eclipse.ui.IWorkbenchPart
- Specified by:
setFocus
in classorg.eclipse.ui.part.WorkbenchPart
-
clearOutput
public final void clearOutput() -
showDropinsPane
public final void showDropinsPane(boolean show) -
propertyChange
public final void propertyChange(org.eclipse.jface.util.PropertyChangeEvent event)- Specified by:
propertyChange
in interfaceorg.eclipse.jface.util.IPropertyChangeListener
-
stopScriptEngine
public void stopScriptEngine() -
getScriptEngine
- Specified by:
getScriptEngine
in interfaceIScriptEngineProvider
-
changePartName
-
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
-
setEngine
-
getContributorId
- Specified by:
getContributorId
in interfaceorg.eclipse.ui.views.properties.tabbed.ITabbedPropertySheetPageContributor
-
getAdapter
- Specified by:
getAdapter
in interfaceorg.eclipse.core.runtime.IAdaptable
- Overrides:
getAdapter
in classorg.eclipse.ui.part.WorkbenchPart
-