Class AbstractDropin

java.lang.Object
org.eclipse.ease.ui.views.shell.dropins.AbstractDropin
All Implemented Interfaces:
IExecutionListener, IScriptEngineProvider, IShellDropin

public abstract class AbstractDropin extends Object implements IShellDropin, IExecutionListener, IScriptEngineProvider
  • Field Details

    • EMPTY_SELECTION_PROVIDER

      public static final org.eclipse.jface.viewers.ISelectionProvider EMPTY_SELECTION_PROVIDER
  • Constructor Details

    • AbstractDropin

      public AbstractDropin()
  • Method Details

    • setScriptEngine

      public void setScriptEngine(IReplEngine engine)
      Description copied from interface: IShellDropin
      Sets the script engine for this drop-in. If the engine is changed during runtime, this method gets called another time. For all other scripting events this drop-in should register a listener on the script engine.
      Specified by:
      setScriptEngine in interface IShellDropin
      Parameters:
      engine - script engine used in shell view
    • getScriptEngine

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

      public org.eclipse.swt.widgets.Composite getPartControl(org.eclipse.ui.IWorkbenchPartSite site, org.eclipse.swt.widgets.Composite parent)
      Description copied from interface: IShellDropin
      Get the drop-in visual root component. Querying this method multiple times always returns the same object.
      Specified by:
      getPartControl in interface IShellDropin
      Parameters:
      site - workbench part site this drop-in is registered to
      parent - parent container to render in
      Returns:
      composite created within parent container (may not be null)
    • 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
    • setHidden

      public void setHidden(boolean hidden)
      Specified by:
      setHidden in interface IShellDropin
    • getSelectionProvider

      public org.eclipse.jface.viewers.ISelectionProvider getSelectionProvider()
      Description copied from interface: IShellDropin
      Get the selection provider of this dropin or null.
      Specified by:
      getSelectionProvider in interface IShellDropin
      Returns:
      selection provider or null