コード例 #1
0
  public void createInitialLayout(IPageLayout layout) {
    layout.addView(
        "au.com.langdale.cimtoole.views.ProjectModelView",
        IPageLayout.RIGHT,
        .33f,
        layout.getEditorArea());
    layout.addView(
        "org.eclipse.ui.navigator.ProjectExplorer", IPageLayout.LEFT, .0f, layout.getEditorArea());
    layout.addView(
        "org.eclipse.ui.views.PropertySheet",
        IPageLayout.BOTTOM,
        .66f,
        "org.eclipse.ui.navigator.ProjectExplorer");
    layout.addView(
        "au.com.langdale.cimtoole.views.Documentation",
        IPageLayout.BOTTOM,
        .66f,
        "au.com.langdale.cimtoole.views.ProjectModelView");

    layout.addShowViewShortcut("org.eclipse.ui.views.ProblemView");
    layout.addShowViewShortcut("org.eclipse.ui.views.PropertySheet");
    layout.addShowViewShortcut("au.com.langdale.cimtoole.views.Documentation");
    layout.addShowViewShortcut("org.eclipse.ui.views.ContentOutline");
    layout.addShowViewShortcut("au.com.langdale.cimtoole.views.ProjectModelView");
    layout.addShowViewShortcut("org.eclipse.ui.navigator.ProjectExplorer");

    layout.addPerspectiveShortcut("au.com.langdale.cimtoole.CIMToolPerspective");
    layout.setEditorAreaVisible(false);
  }
コード例 #2
0
  /**
   * Creates the initial layout for a page.
   *
   * <p>Implementors of this method may add additional views to a perspective. The perspective
   * already contains an editor folder identified by the result of <code>IPageLayout.getEditorArea()
   * </code>. Additional views should be added to the layout using this value as the initial point
   * of reference.
   *
   * @param layout the page layout
   */
  public void createInitialLayout(IPageLayout layout) {
    // Get the editor area.
    String editorArea = layout.getEditorArea();

    layout.addView(
        "net.refractions.udig.project.ui.projectExplorer",
        IPageLayout.LEFT,
        0.25f,
        editorArea); //$NON-NLS-1$
    // layout.addView( "net.refractions.udig.project.ui.layerManager", IPageLayout.BOTTOM, 0.25f,
    // //$NON-NLS-1$
    //        "net.refractions.udig.project.ui.projectExplorer" ); //$NON-NLS-1$

    IFolderLayout folder =
        layout.createFolder(
            "net.refractions.udig.mapPerspective.selection",
            IPageLayout.BOTTOM,
            0.25f, //$NON-NLS-1$
            "net.refractions.udig.project.ui.projectExplorer");
    folder.addView("net.refractions.udig.project.ui.layerManager");
    folder.addView("net.refractions.udig.ui.aoiView");

    layout.addView(
        "net.refractions.udig.catalog.ui.CatalogView",
        IPageLayout.BOTTOM,
        0.65f,
        editorArea); //$NON-NLS-1$
    layout.addActionSet("net.refractions.udig.helpMenuItems");
    layout.addActionSet("net.refractions.udig.ui.default");
    layout.addPerspectiveShortcut(StylePerspective.ID_PERSPECTIVE);
  }
コード例 #3
0
  /**
   * Defines the ATL perspective layout.
   *
   * @param layout the given layout
   */
  public void defineLayout(IPageLayout layout) {
    // editors are placed for free.
    String editorArea = layout.getEditorArea();

    // place navigator to the left (of editor area)
    IFolderLayout left =
        layout.createFolder("left", IPageLayout.LEFT, (float) 0.25, editorArea); // $NON-NLS-1$

    // fix: IPageLayout.ID_PROJECT_EXPLORER missing in eclipse < 3.5
    left.addView("org.eclipse.ui.navigator.ProjectExplorer"); // $NON-NLS-1$

    // problem view at the bottom (of editor area)
    IFolderLayout bottom =
        layout.createFolder("bottom", IPageLayout.BOTTOM, (float) 0.75, editorArea); // $NON-NLS-1$
    bottom.addView(IPageLayout.ID_PROBLEM_VIEW);
    bottom.addView(IConsoleConstants.ID_CONSOLE_VIEW);
    bottom.addView("org.eclipse.pde.runtime.LogView"); // $NON-NLS-1$

    // outline view to right (of editor area)
    IFolderLayout right =
        layout.createFolder("right", IPageLayout.RIGHT, (float) 0.75, editorArea); // $NON-NLS-1$
    right.addView(IPageLayout.ID_OUTLINE);

    // add shortcuts
    layout.addNewWizardShortcut("atlProjectWizard"); // $NON-NLS-1$
    layout.addNewWizardShortcut("atlPluginWizard"); // $NON-NLS-1$
    layout.addNewWizardShortcut("atlFileWizard"); // $NON-NLS-1$
    layout.addNewWizardShortcut("org.eclipse.ui.wizards.new.folder"); // $NON-NLS-1$
    layout.addNewWizardShortcut("org.eclipse.ui.wizards.new.file"); // $NON-NLS-1$
    layout.addActionSet(IDebugUIConstants.LAUNCH_ACTION_SET);

    layout.addShowViewShortcut(IPageLayout.ID_RES_NAV);

    layout.addPerspectiveShortcut("org.eclipse.m2m.atl.adt.atlPerspective"); // $NON-NLS-1$
  }
コード例 #4
0
ファイル: TarotEditorAdvisor.java プロジェクト: rhajamor/eef
    /**
     * @see org.eclipse.ui.IPerspectiveFactory#createInitialLayout(org.eclipse.ui.IPageLayout)
     *     <!-- begin-user-doc -->
     *     <!-- end-user-doc -->
     * @generated
     */
    public void createInitialLayout(IPageLayout layout) {
      layout.setEditorAreaVisible(true);
      layout.addPerspectiveShortcut(ID_PERSPECTIVE);

      IFolderLayout right =
          layout.createFolder("left", IPageLayout.LEFT, (float) 0.66, layout.getEditorArea());
      right.addView(ID_PLAYERS_VIEW);
    }
コード例 #5
0
  /**
   * Defines the ATL perspective actions.
   *
   * @param layout the given layout
   */
  public void defineActions(IPageLayout layout) {
    // Add "new wizards".
    layout.addNewWizardShortcut("atlProjectWizard"); // $NON-NLS-1$
    layout.addNewWizardShortcut("atlPluginWizard"); // $NON-NLS-1$
    layout.addNewWizardShortcut("atlFileWizard"); // $NON-NLS-1$

    // Add "show views".
    layout.addShowViewShortcut(IPageLayout.ID_RES_NAV);

    layout.addPerspectiveShortcut("org.eclipse.m2m.atl.adt.atlPerspective"); // $NON-NLS-1$
  }
コード例 #6
0
  /*
   * Defines perspective specific actions providing shortcuts for New Wizard, Show Views and Open Perspective
   * operations.
   */
  private void defineActions(IPageLayout layout) {
    // Add "new wizards".
    layout.addNewWizardShortcut(NewConnectionWizard.WIZARD_ID);

    // Add "show views".
    layout.addShowViewShortcut(UIConstants.NAVIGATOR_VIEW_ID);
    layout.addShowViewShortcut(PagePreview.VIEW_ID);
    layout.addShowViewShortcut(IPageLayout.ID_OUTLINE);

    // Add "open perspective". Looks nicer with something there.
    for (IPerspectiveDescriptor descriptor :
        PlatformUI.getWorkbench().getPerspectiveRegistry().getPerspectives()) {
      layout.addPerspectiveShortcut(descriptor.getId());
    }
  }
コード例 #7
0
  public void createInitialLayout(IPageLayout layout) {
    layout.setEditorAreaVisible(false);
    //		layout.addStandaloneView("org.eclipse.equinox.security.sample.subjectView", false,
    // IPageLayout.TOP, IPageLayout.RATIO_MAX, IPageLayout.ID_EDITOR_AREA);
    layout.addView(
        "org.eclipse.equinox.security.views.storage",
        IPageLayout.LEFT,
        0.3f,
        IPageLayout.ID_EDITOR_AREA); // $NON-NLS-1$
    // layout.addView("org.eclipse.pde.runtime.RegistryBrowser", IPageLayout.RIGHT, 0.3f,
    // IPageLayout.ID_OUTLINE); //$NON-NLS-1$

    // layout.addView(UserCredentailView.ID, IPageLayout.RIGHT, 0.4f, IPageLayout.ID_EDITOR_AREA);

    // layout.addView("org.eclipse.ui.console.ConsoleView", IPageLayout.BOTTOM, 0.25f,
    // IPageLayout.ID_PROBLEM_VIEW);
    layout.addPerspectiveShortcut(
        "org.eclipse.equinox.security.sample.subjectPerspective"); //$NON-NLS-1$
    layout.addShowViewShortcut("org.eclipse.equinox.security.sample.subjectView"); // $NON-NLS-1$
  }
コード例 #8
0
  /*
   * (non-Javadoc)
   *
   * @see org.eclipse.ui.IPerspectiveFactory#createInitialLayout(org.eclipse.ui.IPageLayout)
   */
  public void createInitialLayout(IPageLayout layout) {
    layout.setEditorAreaVisible(true);
    layout.setFixed(false);
    layout.addStandaloneView(
        IStudioConstants.STUDIO_MENU_NAVIGATOR_ID,
        true,
        IPageLayout.LEFT,
        0.15f,
        layout.getEditorArea());
    layout.addPerspectiveShortcut(IStudioConstants.STUDIO_PERSPECTIVE_ID);

    IFolderLayout bottom =
        layout.createFolder("bottom", IPageLayout.BOTTOM, 0.75f, layout.getEditorArea());
    bottom.addView(IConsoleConstants.ID_CONSOLE_VIEW);
    bottom.addView("org.eclipse.pde.runtime.LogView");
    bottom.addView("org.eclipse.ui.views.ProblemView");
    bottom.addView(XjcFieldViewPart.ID);

    layout.addStandaloneView(
        EngineConstants.CONTENT_OUT_LINE, true, IPageLayout.RIGHT, 0.70f, layout.getEditorArea());
  }
コード例 #9
0
    /**
     * @see org.eclipse.ui.IPerspectiveFactory#createInitialLayout(org.eclipse.ui.IPageLayout)
     *     <!-- begin-user-doc -->
     *     Create a fixed layout with Editor top left, Properties top right, folder at the bottom
     *     containing the ResourceNavigator and a placeholder for the peoples view. This closes #7.
     *     <!-- end-user-doc -->
     * @generated NOT
     */
    @Override
    public void createInitialLayout(IPageLayout layout) {
      layout.setEditorAreaVisible(true);
      layout.addPerspectiveShortcut(ID_PERSPECTIVE);
      layout.setFixed(true);

      IFolderLayout bottom =
          layout.createFolder("bottom", IPageLayout.BOTTOM, (float) 0.50, layout.getEditorArea());

      bottom.addView("org.eclipse.ui.views.ResourceNavigator");
      IViewLayout viewLayout = layout.getViewLayout("org.eclipse.ui.views.ResourceNavigator");
      viewLayout.setCloseable(false);
      viewLayout.setMoveable(false);
      // Create a placeholder at the bottom for the Person view
      bottom.addPlaceholder("com.verticon.treatment.views.PeopleView");

      layout.addView(
          IPageLayout.ID_PROP_SHEET, IPageLayout.RIGHT, (float) 0.55, layout.getEditorArea());
      viewLayout = layout.getViewLayout(IPageLayout.ID_PROP_SHEET);
      viewLayout.setCloseable(false);
      viewLayout.setMoveable(false);
    }
コード例 #10
0
  /* (non-Javadoc)
   * @see org.eclipse.ui.IPerspectiveFactory#createInitialLayout(org.eclipse.ui.IPageLayout)
   */
  public void createInitialLayout(IPageLayout layout) {
    layout.addNewWizardShortcut("org.cubictest.ui.wizards.NewTestWizard");
    layout.addNewWizardShortcut("org.cubictest.ui.wizards.NewSubTestWizard");
    layout.addNewWizardShortcut("org.cubictest.ui.wizards.NewTestSuiteWizard");
    layout.addNewWizardShortcut("org.cubictest.ui.wizards.NewCubicTestProjectWizard");
    layout.addNewWizardShortcut("org.cubictest.ui.wizards.NewParamWizard");
    layout.addNewWizardShortcut("org.cubictest.ui.wizards.NewPropertiesWizard");
    layout.addNewWizardShortcut("org.cubictest.ui.wizards.NewCustomTestStepWizard");
    layout.addNewWizardShortcut("org.eclipse.ui.wizards.new.folder");
    layout.addNewWizardShortcut("org.eclipse.jdt.ui.wizards.NewPackageCreationWizard");
    layout.addNewWizardShortcut("org.eclipse.jdt.ui.wizards.NewClassCreationWizard");
    layout.addNewWizardShortcut("org.eclipse.jdt.ui.wizards.NewInterfaceCreationWizard");
    layout.addNewWizardShortcut("org.eclipse.jdt.ui.wizards.NewEnumCreationWizard");

    layout.addShowViewShortcut(IConsoleConstants.ID_CONSOLE_VIEW);
    layout.addShowViewShortcut(IPageLayout.ID_PROP_SHEET);
    layout.addShowViewShortcut(IPageLayout.ID_OUTLINE);
    layout.addShowViewShortcut(JavaUI.ID_PACKAGES); // package explorer
    layout.addShowViewShortcut(IPageLayout.ID_PROP_SHEET);
    layout.addShowViewShortcut(LOG_VIEW_ID);
    layout.addShowViewShortcut(IPageLayout.ID_PROBLEM_VIEW);
    layout.addShowViewShortcut(IProgressConstants.PROGRESS_VIEW_ID);

    layout.addPerspectiveShortcut(JavaUI.ID_PERSPECTIVE);
    layout.addPerspectiveShortcut(IDebugUIConstants.ID_DEBUG_PERSPECTIVE);

    layout.addActionSet(IDebugUIConstants.LAUNCH_ACTION_SET);
    layout.addActionSet(JavaUI.ID_ACTION_SET);
    layout.addActionSet(JavaUI.ID_ELEMENT_CREATION_ACTION_SET);
    layout.addActionSet(IPageLayout.ID_NAVIGATE_ACTION_SET);

    String editorArea = layout.getEditorArea();

    // Top left: Package explorer view and Bookmarks view placeholder
    String topLeftId = "topLeft";
    IFolderLayout topLeft = layout.createFolder(topLeftId, IPageLayout.LEFT, 0.20f, editorArea);
    topLeft.addView(JavaUI.ID_PACKAGES);
    topLeft.addPlaceholder(IPageLayout.ID_BOOKMARKS);

    // Bottom left: Outline view
    IFolderLayout bottomLeft =
        layout.createFolder("bottomLeft", IPageLayout.BOTTOM, 0.50f, topLeftId);
    bottomLeft.addView(IPageLayout.ID_OUTLINE);

    // Bottom right: Property Sheet view and Log view
    IFolderLayout bottomRight =
        layout.createFolder("bottomRight", IPageLayout.BOTTOM, 0.66f, editorArea);
    bottomRight.addView(IPageLayout.ID_PROP_SHEET);
    bottomRight.addView(IPageLayout.ID_PROBLEM_VIEW);
    bottomRight.addView(LOG_VIEW_ID);
    bottomRight.addView(IProgressConstants.PROGRESS_VIEW_ID);

    layout.addPerspectiveShortcut("cubicTestPlugin.CubicTest");

    try {
      // Set "activate on errors" property to false on logview (only works if it's hidden)
      Preferences preferences = PDERuntimePlugin.getDefault().getPluginPreferences();
      preferences.setValue("activate", false);
      PDERuntimePlugin.getDefault().savePluginPreferences();
    } catch (Throwable t) {
      t.printStackTrace();
    }
  }
コード例 #11
0
  public void createInitialLayout(IPageLayout factory) {

    //		factory.addShowViewShortcut(PLOT_VIEW_ID);

    factory.addPerspectiveShortcut(EXPERIMENT_PERSPECTIVE_ID);

    //		factory.addStandaloneView(CONTROL_VIEW_ID, false,
    //				IPageLayout.BOTTOM, 0.70f, factory.getEditorArea());

    factory.addStandaloneView(
        ID_VIEW_ACTIVITY_MONITOR, false, IPageLayout.BOTTOM, 0.70f, factory.getEditorArea());

    factory.addStandaloneView(
        SICS_TERMINAL_VIEW_ID, false, IPageLayout.LEFT, 0.50f, ID_VIEW_ACTIVITY_MONITOR);

    factory.addStandaloneView(
        PROJECT_EXPLORER_VIEW_ID, true, IPageLayout.LEFT, 0.5f, SICS_TERMINAL_VIEW_ID);

    //		factory.addStandaloneView(WORKFLOW_VIEW_ID, true,
    //				IPageLayout.TOP, 0.99f, factory.getEditorArea());

    factory.addStandaloneView(
        SICS_BUFFER_RUNNER, true, IPageLayout.RIGHT, 0.502f, factory.getEditorArea());

    //		IFolderLayout bottomCenter = factory.createFolder("bottomCenter",
    //				IPageLayout.LEFT, 0.382f, PLOT_VIEW_ID + ":3");
    //		bottomCenter.addView(ANALYSIS_PARAMETERS_VIEW_ID);

    //		factory.addStandaloneView(FILTERED_STATUS_MONITOR_VIEW_ID, false,
    //				IPageLayout.BOTTOM, 0.493f, PLOT_VIEW_ID + ":2");
    //

    //		IWorkbench workbench = PlatformUI.getWorkbench();

    //		IEditorInput input = new NullEditorInput();
    String makeNewEditor = System.getProperty("gumtree.echidna.openNewEditor", "false");
    if (Boolean.parseBoolean(makeNewEditor)) {
      try {
        IFileEditorInput input = getFileStorage(0);
        PlatformUI.getWorkbench()
            .getActiveWorkbenchWindow()
            .getActivePage()
            .openEditor(input, ID_TCL_EDITOR);
      } catch (Exception e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
      }
    }
    //		workbench.getActiveWorkbenchWindow().addPerspectiveListener(new IPerspectiveListener() {
    //
    //			@Override
    //			public void perspectiveChanged(IWorkbenchPage page,
    //					IPerspectiveDescriptor perspective, String changeId) {
    //				// TODO Auto-generated method stub
    //
    //			}
    //
    //			@Override
    //			public void perspectiveActivated(IWorkbenchPage page,
    //					IPerspectiveDescriptor perspective) {
    //				// TODO Auto-generated method stub
    //
    //			}
    //		});

    //	    try {
    //	        PlatformUI.getWorkbench().getActiveWorkbenchWindow().;
    //	    } catch ( Exception e ) {
    //	        e.printStackTrace();
    //	    }

    //		factory.addStandaloneView(EXPORT_ALL_VIEW_ID, false,
    //				IPageLayout.BOTTOM, 0.94f, factory.getEditorArea());

    //		factory.addView(WORKFLOW_VIEW_ID, IPageLayout.TOP, 1f, factory.getEditorArea());

    //		factory.addStandaloneView(FILTERED_STATUS_MONITOR_VIEW_ID, false,
    //				IPageLayout.BOTTOM, 0.663f, WORKFLOW_VIEW_ID);

    //		IFolderLayout bottomLeft = factory.createFolder(
    //				"bottomLeft", //NON-NLS-1
    //				IPageLayout.BOTTOM,
    //				0.663f,
    //				WORKFLOW_VIEW_ID);
    //		bottomLeft.addView(FILTERED_STATUS_MONITOR_VIEW_ID);

    //		IFolderLayout bottomLeft2 = factory.createFolder(
    //				"bottomLeft2", //NON-NLS-1
    //				IPageLayout.RIGHT,
    //				0.53f,
    //				"bottomLeft");
    //		bottomLeft2.addView(SICS_TERMINAL_VIEW_ID);

    //		IPerspectiveDescriptor descriptor = factory.getDescriptor();
    //		try {
    //			PlotManager.resetPlotViewId();
    //			kakadu.loadAlgorithm(cicada.loadAlgorithm("Online Reduction"), descriptor);
    //			AlgorithmTask task = ProjectManager.getCurrentAlgorithmTask();
    //			task.runAlgorithm();
    ////			ExportAllView.setAlgorithmTask(task);
    //		} catch (NoneAlgorithmException e) {
    //			e.printStackTrace();
    //		}
    //		factory.setEditorAreaVisible(false);
    //		factory.getViewLayout(CONTROL_VIEW_ID).setCloseable(false);
    //		factory.getViewLayout(WORKFLOW_VIEW_ID).setCloseable(false);
    //		factory.getViewLayout(WORKFLOW_VIEW_ID).setMoveable(false);
    //		factory.getViewLayout(PROJECT_EXPLORER_VIEW_ID).setCloseable(false);
    //		factory.getViewLayout(PROJECT_EXPLORER_VIEW_ID).setMoveable(false);
    //		factory.getViewLayout(SICS_BUFFER_RUNNER).setCloseable(false);
    //		factory.getViewLayout(SICS_BUFFER_RUNNER).setMoveable(false);
    factory.setEditorAreaVisible(true);
    //		factory.getViewLayout(FILTERED_STATUS_MONITOR_VIEW_ID).setCloseable(false);
    //		factory.getViewLayout(ANALYSIS_PARAMETERS_VIEW_ID).setCloseable(false);

    //		factory.setFixed(true);
  }
コード例 #12
0
  public void createInitialLayout(IPageLayout layout) {
    if (stackBrowsingViewsVertically()) createVerticalLayout(layout);
    else createHorizontalLayout(layout);

    // action sets
    layout.addActionSet(IDebugUIConstants.LAUNCH_ACTION_SET);
    layout.addActionSet(JavaUI.ID_ACTION_SET);
    layout.addActionSet(JavaUI.ID_ELEMENT_CREATION_ACTION_SET);
    layout.addActionSet(IPageLayout.ID_NAVIGATE_ACTION_SET);

    // views - java
    layout.addShowViewShortcut(JavaUI.ID_TYPE_HIERARCHY);
    layout.addShowViewShortcut(JavaUI.ID_PACKAGES);
    layout.addShowViewShortcut(JavaUI.ID_PROJECTS_VIEW);
    layout.addShowViewShortcut(JavaUI.ID_PACKAGES_VIEW);
    layout.addShowViewShortcut(JavaUI.ID_TYPES_VIEW);
    layout.addShowViewShortcut(JavaUI.ID_MEMBERS_VIEW);
    layout.addShowViewShortcut(JavaUI.ID_SOURCE_VIEW);
    layout.addShowViewShortcut(JavaUI.ID_JAVADOC_VIEW);
    layout.addShowViewShortcut(TemplatesView.ID);

    // views - search
    layout.addShowViewShortcut(NewSearchUI.SEARCH_VIEW_ID);

    // views - debugging
    layout.addShowViewShortcut(IConsoleConstants.ID_CONSOLE_VIEW);

    // views - standard workbench
    layout.addShowViewShortcut(IPageLayout.ID_OUTLINE);
    layout.addShowViewShortcut(IPageLayout.ID_PROBLEM_VIEW);
    layout.addShowViewShortcut(JavaPlugin.ID_RES_NAV);
    layout.addShowViewShortcut(IPageLayout.ID_TASK_LIST);
    layout.addShowViewShortcut(IProgressConstants.PROGRESS_VIEW_ID);
    layout.addShowViewShortcut(IPageLayout.ID_PROJECT_EXPLORER);
    layout.addShowViewShortcut("org.eclipse.pde.runtime.LogView"); // $NON-NLS-1$

    // new actions - Java project creation wizard
    layout.addNewWizardShortcut("org.eclipse.jdt.ui.wizards.JavaProjectWizard"); // $NON-NLS-1$
    layout.addNewWizardShortcut(
        "org.eclipse.jdt.ui.wizards.NewPackageCreationWizard"); //$NON-NLS-1$
    layout.addNewWizardShortcut("org.eclipse.jdt.ui.wizards.NewClassCreationWizard"); // $NON-NLS-1$
    layout.addNewWizardShortcut(
        "org.eclipse.jdt.ui.wizards.NewInterfaceCreationWizard"); //$NON-NLS-1$
    layout.addNewWizardShortcut("org.eclipse.jdt.ui.wizards.NewEnumCreationWizard"); // $NON-NLS-1$
    layout.addNewWizardShortcut(
        "org.eclipse.jdt.ui.wizards.NewAnnotationCreationWizard"); //$NON-NLS-1$
    layout.addNewWizardShortcut(
        "org.eclipse.jdt.ui.wizards.NewSourceFolderCreationWizard"); //$NON-NLS-1$
    layout.addNewWizardShortcut(
        "org.eclipse.jdt.ui.wizards.NewSnippetFileCreationWizard"); //$NON-NLS-1$
    layout.addNewWizardShortcut(
        "org.eclipse.jdt.ui.wizards.NewJavaWorkingSetWizard"); //$NON-NLS-1$
    layout.addNewWizardShortcut("org.eclipse.ui.wizards.new.folder"); // $NON-NLS-1$
    layout.addNewWizardShortcut("org.eclipse.ui.wizards.new.file"); // $NON-NLS-1$
    layout.addNewWizardShortcut(
        "org.eclipse.ui.editors.wizards.UntitledTextFileWizard"); //$NON-NLS-1$

    // 'Window' > 'Open Perspective' contributions
    layout.addPerspectiveShortcut(JavaUI.ID_PERSPECTIVE);
    layout.addPerspectiveShortcut(IDebugUIConstants.ID_DEBUG_PERSPECTIVE);
  }