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_STARTFields inherited from interface org.eclipse.ui.IWorkbenchPart
PROP_TITLE -
Constructor Summary
Constructors Constructor Description ScriptShell()Default constructor. -
Method Summary
Modifier and Type Method Description voidchangePartName(String newPartName)voidclearOutput()voidcreatePartControl(org.eclipse.swt.widgets.Composite parent)voiddispose()<T> TgetAdapter(Class<T> adapter)StringgetContributorId()IScriptEnginegetScriptEngine()voidinit(org.eclipse.ui.IViewSite site, org.eclipse.ui.IMemento memento)voidnotify(IScriptEngine engine, Script script, int status)Notifies the listeners when script execution started/ended or when the engine itself is started/ended.voidpropertyChange(org.eclipse.jface.util.PropertyChangeEvent event)voidrunStartupCommands()voidsaveState(org.eclipse.ui.IMemento memento)voidsetEngine(String id)voidsetFocus()voidshowDropinsPane(boolean show)voidstopScriptEngine()Methods inherited from class org.eclipse.ui.part.ViewPart
getViewSite, init, setInitializationDataMethods inherited from class org.eclipse.ui.part.WorkbenchPart
addPartPropertyListener, addPropertyListener, getContentDescription, getOrientation, getPartName, getPartProperties, getPartProperty, getSite, getTitle, getTitleImage, getTitleToolTip, removePartPropertyListener, removePropertyListener, setPartProperty, showBusyMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
initin interfaceorg.eclipse.ui.IViewPart- Overrides:
initin classorg.eclipse.ui.part.ViewPart- Throws:
org.eclipse.ui.PartInitException
-
saveState
public final void saveState(org.eclipse.ui.IMemento memento)- Specified by:
saveStatein interfaceorg.eclipse.ui.IPersistable- Specified by:
saveStatein interfaceorg.eclipse.ui.IViewPart- Overrides:
saveStatein classorg.eclipse.ui.part.ViewPart
-
createPartControl
public final void createPartControl(org.eclipse.swt.widgets.Composite parent)- Specified by:
createPartControlin interfaceorg.eclipse.ui.IWorkbenchPart- Specified by:
createPartControlin classorg.eclipse.ui.part.WorkbenchPart
-
runStartupCommands
public void runStartupCommands() -
dispose
public final void dispose()- Specified by:
disposein interfaceorg.eclipse.ui.IWorkbenchPart- Overrides:
disposein classorg.eclipse.ui.part.WorkbenchPart
-
setFocus
public final void setFocus()- Specified by:
setFocusin interfaceorg.eclipse.ui.IWorkbenchPart- Specified by:
setFocusin 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:
propertyChangein interfaceorg.eclipse.jface.util.IPropertyChangeListener
-
stopScriptEngine
public void stopScriptEngine() -
getScriptEngine
- Specified by:
getScriptEnginein interfaceIScriptEngineProvider
-
changePartName
-
notify
Description copied from interface:IExecutionListenerNotifies the listeners when script execution started/ended or when the engine itself is started/ended.- Specified by:
notifyin interfaceIExecutionListener- Parameters:
engine- Script Enginescript- Script ornullstatus- Event Status
-
setEngine
-
getContributorId
- Specified by:
getContributorIdin interfaceorg.eclipse.ui.views.properties.tabbed.ITabbedPropertySheetPageContributor
-
getAdapter
- Specified by:
getAdapterin interfaceorg.eclipse.core.runtime.IAdaptable- Overrides:
getAdapterin classorg.eclipse.ui.part.WorkbenchPart
-