Interface IShellDropin

All Known Implementing Classes:
AbstractDropin

public interface IShellDropin
Interface for shell drop-ins. A shell drop-in is a composite adding additional features to the script shell view. It resides in a sidebar of the shell and is connected to the current script engine.
  • Method Summary

    Modifier and Type Method Description
    org.eclipse.swt.widgets.Composite createPartControl​(org.eclipse.ui.IWorkbenchPartSite site, org.eclipse.swt.widgets.Composite parent)
    Create the drop-in visual components.
    String getTitle()
    Get this drop-in title.
    void setHidden​(boolean hidden)  
    void setScriptEngine​(IReplEngine engine)
    Sets the script engine for this drop-in.
  • Method Details

    • setScriptEngine

      void setScriptEngine​(IReplEngine engine)
      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.
      Parameters:
      engine - script engine used in shell view
    • createPartControl

      org.eclipse.swt.widgets.Composite createPartControl​(org.eclipse.ui.IWorkbenchPartSite site, org.eclipse.swt.widgets.Composite parent)
      Create the drop-in visual components.
      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)
    • getTitle

      String getTitle()
      Get this drop-in title. The title is used to populate a tabitem.
      Returns:
      drop-in title
    • setHidden

      void setHidden​(boolean hidden)