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
    getPartControl(org.eclipse.ui.IWorkbenchPartSite site, org.eclipse.swt.widgets.Composite parent)
    Get the drop-in visual root component.
    org.eclipse.jface.viewers.ISelectionProvider
    Get the selection provider of this dropin or null.
    Get this drop-in title.
    void
    setHidden(boolean hidden)
     
    void
    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
    • getPartControl

      org.eclipse.swt.widgets.Composite getPartControl(org.eclipse.ui.IWorkbenchPartSite site, org.eclipse.swt.widgets.Composite parent)
      Get the drop-in visual root component. Querying this method multiple times always returns the same object.
      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)
    • getSelectionProvider

      org.eclipse.jface.viewers.ISelectionProvider getSelectionProvider()
      Get the selection provider of this dropin or null.
      Returns:
      selection provider or null