Class ChangeToPerspectiveMenu

All Implemented Interfaces:
IContributionItem

public class ChangeToPerspectiveMenu extends PerspectiveMenu
Change the perspective of the active page in the window to the selected one.
  • Constructor Details

    • ChangeToPerspectiveMenu

      public ChangeToPerspectiveMenu(IWorkbenchWindow window, String id)
      Constructor for ChangeToPerspectiveMenu.
      Parameters:
      window - the workbench window this action applies to
      id - the menu id
  • Method Details

    • run

      protected void run(IPerspectiveDescriptor desc)
      Description copied from class: PerspectiveMenu
      Runs an action for a particular perspective. The behavior of the action is defined by the subclass.
      Specified by:
      run in class PerspectiveMenu
      Parameters:
      desc - the selected perspective