Class PerspectiveSwitcher

java.lang.Object
org.eclipse.e4.ui.workbench.addons.perspectiveswitcher.PerspectiveSwitcher

public class PerspectiveSwitcher extends Object
Class to handle perspective switching in the UI.
  • Field Details

    • PERSPECTIVE_SWITCHER_ID

      public static final String PERSPECTIVE_SWITCHER_ID
      The ID of the perspective switcher
      See Also:
    • eventBroker

      @Inject protected IEventBroker eventBroker
      The event IEventBroker.
    • downPos

      protected Point downPos
    • dragItem

      protected ToolItem dragItem
    • dragging

      protected boolean dragging
    • dragShell

      protected Shell dragShell
  • Constructor Details

    • PerspectiveSwitcher

      public PerspectiveSwitcher()
  • Method Details

    • getItemFor

      protected ToolItem getItemFor(MPerspective persp)
      Parameters:
      persp - the perspective
      Returns:
      the tool item