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

public class ScriptShell
extends org.eclipse.ui.part.ViewPart
implements org.eclipse.jface.util.IPropertyChangeListener, IScriptEngineProvider, IExecutionListener
The JavaScript shell allows to interactively execute JavaScript code.
  • Field Summary

    Fields
    Modifier and Type Field Description
    static String VIEW_ID  

    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()  
    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, getAdapter, 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.core.runtime.IAdaptable

    getAdapter

    Methods inherited from interface org.eclipse.ui.IWorkbenchPart

    addPropertyListener, getSite, getTitle, getTitleImage, getTitleToolTip, removePropertyListener
  • Field Details

  • 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 interface org.eclipse.ui.IViewPart
      Overrides:
      init in class org.eclipse.ui.part.ViewPart
      Throws:
      org.eclipse.ui.PartInitException
    • saveState

      public final void saveState​(org.eclipse.ui.IMemento memento)
      Specified by:
      saveState in interface org.eclipse.ui.IPersistable
      Specified by:
      saveState in interface org.eclipse.ui.IViewPart
      Overrides:
      saveState in class org.eclipse.ui.part.ViewPart
    • createPartControl

      public final void createPartControl​(org.eclipse.swt.widgets.Composite parent)
      Specified by:
      createPartControl in interface org.eclipse.ui.IWorkbenchPart
      Specified by:
      createPartControl in class org.eclipse.ui.part.WorkbenchPart
    • runStartupCommands

      public void runStartupCommands()
    • dispose

      public final void dispose()
      Specified by:
      dispose in interface org.eclipse.ui.IWorkbenchPart
      Overrides:
      dispose in class org.eclipse.ui.part.WorkbenchPart
    • setFocus

      public final void setFocus()
      Specified by:
      setFocus in interface org.eclipse.ui.IWorkbenchPart
      Specified by:
      setFocus in class org.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 interface org.eclipse.jface.util.IPropertyChangeListener
    • stopScriptEngine

      public void stopScriptEngine()
    • getScriptEngine

      public IScriptEngine getScriptEngine()
      Specified by:
      getScriptEngine in interface IScriptEngineProvider
    • changePartName

      public void changePartName​(String newPartName)
    • notify

      public void notify​(IScriptEngine engine, Script script, int status)
      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 interface IExecutionListener
      Parameters:
      engine - Script Engine
      script - Script or null
      status - Event Status
    • setEngine

      public final void setEngine​(String id)