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,IAdaptable,IExecutableExtension,IExecutionListener,IScriptEngineProvider,IPropertyChangeListener,IPersistable,IViewPart,IWorkbenchPart,IWorkbenchPart2,IWorkbenchPart3,IWorkbenchPartOrientation,ITabbedPropertySheetPageContributor
public class ScriptShell
extends ViewPart
implements IPropertyChangeListener, IScriptEngineProvider, IExecutionListener, ITabbedPropertySheetPageContributor
The JavaScript shell allows to interactively execute JavaScript code.
-
Field Summary
FieldsFields 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 -
Method Summary
Modifier and TypeMethodDescriptionvoidchangePartName(String newPartName) final voidfinal voidcreatePartControl(Composite parent) final voiddispose()<T> TgetAdapter(Class<T> adapter) final voidvoidnotify(IScriptEngine engine, Script script, int status) Notifies the listeners when script execution started/ended or when the engine itself is started/ended.final voidvoidfinal voidfinal voidfinal voidsetFocus()final voidshowDropinsPane(boolean show) voidMethods 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:
-
-
Constructor Details
-
ScriptShell
public ScriptShell()Default constructor.
-
-
Method Details
-
init
- Specified by:
initin interfaceIViewPart- Overrides:
initin classViewPart- Throws:
PartInitException
-
saveState
-
createPartControl
- Specified by:
createPartControlin interfaceIWorkbenchPart- Specified by:
createPartControlin classWorkbenchPart
-
runStartupCommands
public void runStartupCommands() -
dispose
public final void dispose()- Specified by:
disposein interfaceIWorkbenchPart- Overrides:
disposein classWorkbenchPart
-
setFocus
public final void setFocus()- Specified by:
setFocusin interfaceIWorkbenchPart- Specified by:
setFocusin classWorkbenchPart
-
clearOutput
public final void clearOutput() -
showDropinsPane
public final void showDropinsPane(boolean show) -
propertyChange
- Specified by:
propertyChangein interfaceIPropertyChangeListener
-
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 interfaceITabbedPropertySheetPageContributor
-
getAdapter
- Specified by:
getAdapterin interfaceIAdaptable- Overrides:
getAdapterin classWorkbenchPart
-