Пример #1
0
  public void createInitialLayout(final IPageLayout layout) {
    final String editorArea = layout.getEditorArea();
    layout.setEditorAreaVisible(false);

    layout.addStandaloneView(ModelTreeView.ID, true, IPageLayout.BOTTOM, 0.1f, editorArea);

    final IFolderLayout folder =
        layout.createFolder("modelViews", IPageLayout.RIGHT, 0.2f, ModelTreeView.ID);
    folder.addPlaceholder(Model3DView.ID + ":*");
    folder.addView(Model3DView.ID);

    layout.addStandaloneView(
        GeneratorTreeView.ID, true, IPageLayout.BOTTOM, 0.7f, ModelTreeView.ID);

    layout.addStandaloneView(SelectionModeView.ID, false, IPageLayout.TOP, 0.95f, editorArea);
    layout.getViewLayout(SelectionModeView.ID).setCloseable(false);

    layout.addStandaloneView(
        ToolControlView.ID, false, IPageLayout.RIGHT, 0.01f, SelectionModeView.ID);
    layout.getViewLayout(ToolControlView.ID).setCloseable(false);

    final IPlaceholderFolderLayout toolFolder =
        layout.createPlaceholderFolder("tools", IPageLayout.RIGHT, 0.01f, ToolControlView.ID);
    toolFolder.addPlaceholder(ToolSelectionView.ID + ":*");
    // toolFolder.addView(ToolSelectionView.ID);

    layout.addStandaloneView(SelectionInfoView.ID, true, IPageLayout.RIGHT, 0.8f, "modelViews");
    final IFolderLayout optionFolder =
        layout.createFolder("optionViews", IPageLayout.BOTTOM, 0.1f, SelectionInfoView.ID);
    optionFolder.addView(NodeOptionView.ID);
    optionFolder.addView(ToolOptionView.ID);

    layout.addShowViewShortcut(Model3DView.ID);
    layout.addShowViewShortcut(ModelTreeView.ID);
  }
 @Override
 public void createInitialLayout(IPageLayout layout) {
   layout.setEditorAreaVisible(false);
   layout.setFixed(false);
   IFolderLayout mainFolder =
       layout.createFolder("MAIN_FOLDER", IPageLayout.TOP, IPageLayout.RATIO_MAX, null);
   mainFolder.addView(TomoAlignmentViewFactory.ID);
   mainFolder.addView(TomoConfigurationViewFactory.ID);
   layout.addShowViewShortcut(TomoAlignmentViewFactory.ID);
   layout.addShowViewShortcut(TomoConfigurationViewFactory.ID);
 }
  /*
   * 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());
    }
  }
  /**
   * 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$
  }
 public void createInitialLayout(IPageLayout layout) {
   String editorArea = layout.getEditorArea();
   layout.setEditorAreaVisible(false);
   layout.setFixed(false);
   layout.addPlaceholder(LeistungenView.ID, SWT.LEFT, 0.3f, editorArea);
   layout.addView(CodeDetailView.ID, SWT.RIGHT, 0.8f, editorArea);
   layout.addShowViewShortcut(CodeDetailView.ID);
 }
  /**
   * 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$
  }
 private void addViewShortcuts() {
   factory.addShowViewShortcut(ISAView.ID);
   factory.addShowViewShortcut(RegisterView.ID);
   factory.addShowViewShortcut(MIPSConsoleView.ID);
   factory.addShowViewShortcut(DataSegmentView.ID);
   factory.addShowViewShortcut(DisassCodeView.ID);
   factory.addShowViewShortcut(IPageLayout.ID_PROBLEM_VIEW);
   factory.addShowViewShortcut(IPageLayout.ID_PROGRESS_VIEW);
   factory.addShowViewShortcut(IPageLayout.ID_PROJECT_EXPLORER);
 }
  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);
  }
  /* (non-Javadoc)
   * @see org.eclipse.ui.IPerspectiveFactory#createInitialLayout(org.eclipse.ui.IPageLayout)
   */
  public void createInitialLayout(IPageLayout layout) {
    IFolderLayout left =
        layout.createFolder(LEFT_FOLDER_ID, IPageLayout.LEFT, 0.30f, layout.getEditorArea());
    left.addView(ORG_ECLIPSE_UI_NAVIGATOR_PROJECT_EXPLORER);
    left.addPlaceholder(JDT_PACKAGE_EXPLORER_VIEW_ID);

    IFolderLayout bot =
        layout.createFolder(BOTTOM_FOLDER_ID, IPageLayout.BOTTOM, 0.50f, layout.getEditorArea());
    for (String viewId : VIEW_IDS_TO_OPEN) {
      bot.addView(viewId);
      layout.addShowViewShortcut(viewId);
    }
  }
Пример #10
0
  @Override
  @SuppressWarnings("deprecation")
  public void createInitialLayout(final IPageLayout layout) {
    // left | editor
    //      |
    //      |
    //      +-------------
    //      | bottom
    final String editor = layout.getEditorArea();
    final IFolderLayout left = layout.createFolder("left", IPageLayout.LEFT, 0.25f, editor);
    final IFolderLayout bottom = layout.createFolder("bottom", IPageLayout.BOTTOM, 0.66f, editor);

    // Stuff for 'left'
    left.addPlaceholder(IPageLayout.ID_RES_NAV);
    left.addPlaceholder(IPageLayout.ID_PROP_SHEET);

    // Stuff for 'bottom'
    bottom.addPlaceholder(ID_CONSOLE_VIEW);

    // Populate the "Window/Views..." menu with suggested views
    layout.addShowViewShortcut(IPageLayout.ID_RES_NAV);
    layout.addShowViewShortcut(ID_CONSOLE_VIEW);
  }
  public void createInitialLayout(IPageLayout layout) {

    String editorArea = layout.getEditorArea();

    // New wizards
    layout.addNewWizardShortcut(ID_NEW_BPEL_PROJECT_WIZARD);
    layout.addNewWizardShortcut(ID_NEW_BPEL_FILE_WIZARD);
    layout.addNewWizardShortcut(ID_NEW_BPEL_DEPLOY_WIZARD);

    // view shortcuts
    layout.addShowViewShortcut(IPageLayout.ID_OUTLINE);
    layout.addShowViewShortcut(IPageLayout.ID_PROP_SHEET);
    layout.addShowViewShortcut(ID_PALETTE_VIEW);
    layout.addShowViewShortcut(IPageLayout.ID_PROJECT_EXPLORER);
    layout.addShowViewShortcut(IPageLayout.ID_PROBLEM_VIEW);
    layout.addShowViewShortcut(IConsoleConstants.ID_CONSOLE_VIEW);
    layout.addShowViewShortcut(ID_SERVERS_VIEW);

    // views
    IFolderLayout leftTop =
        layout.createFolder("leftTop", IPageLayout.LEFT, 0.2f, editorArea); // $NON-NLS-1$
    leftTop.addView(IPageLayout.ID_PROJECT_EXPLORER);
    leftTop.addPlaceholder(IPageLayout.ID_RES_NAV);

    IFolderLayout leftBottom =
        layout.createFolder(
            "leftBottom", IPageLayout.BOTTOM, 0.7f, "leftTop"); // $NON-NLS-1$ //$NON-NLS-2$
    leftBottom.addView(ID_SERVERS_VIEW);

    IFolderLayout bottom =
        layout.createFolder("bottom", IPageLayout.BOTTOM, 0.7f, editorArea); // $NON-NLS-1$
    bottom.addView(IPageLayout.ID_PROP_SHEET);
    bottom.addView(IPageLayout.ID_PROBLEM_VIEW);
    bottom.addView(IPageLayout.ID_TASK_LIST);
    bottom.addPlaceholder(IConsoleConstants.ID_CONSOLE_VIEW);

    IFolderLayout rightTop =
        layout.createFolder("rightTop", IPageLayout.RIGHT, 0.8f, editorArea); // $NON-NLS-1$
    rightTop.addView(IPageLayout.ID_OUTLINE);

    IFolderLayout rightBottom =
        layout.createFolder(
            "rightBottom", IPageLayout.BOTTOM, 0.4f, "rightTop"); // $NON-NLS-1$ //$NON-NLS-2$
    rightBottom.addView(ID_PALETTE_VIEW);

    // action sets
    layout.addActionSet(IPageLayout.ID_NAVIGATE_ACTION_SET);
    // layout.addActionSet(ID_SERVERS_ACTION_SET);

  }
Пример #12
0
  /**
   * Defines the initial actions for a page.
   *
   * @param layout The layout we are filling
   */
  private void defineActions(IPageLayout layout) {
    // Add "new wizards".
    layout.addNewWizardShortcut("org.eclipse.ui.wizards.new.folder"); // $NON-NLS-1$
    layout.addNewWizardShortcut("org.eclipse.ui.wizards.new.file"); // $NON-NLS-1$

    // Add "show views".
    layout.addShowViewShortcut(IPageLayout.ID_PROJECT_EXPLORER);
    layout.addShowViewShortcut(IPageLayout.ID_BOOKMARKS);
    layout.addShowViewShortcut(IPageLayout.ID_OUTLINE);
    layout.addShowViewShortcut(IPageLayout.ID_PROP_SHEET);
    layout.addShowViewShortcut(IPageLayout.ID_PROBLEM_VIEW);
    layout.addShowViewShortcut(IPageLayout.ID_PROGRESS_VIEW);
    layout.addShowViewShortcut(IPageLayout.ID_TASK_LIST);

    layout.addActionSet(IPageLayout.ID_NAVIGATE_ACTION_SET);
  }
Пример #13
0
  /**
   * Defines the initial actions for a page.
   *
   * @param layout The layout we are filling
   */
  public void defineActions(IPageLayout layout) {
    // Add "new wizards".
    layout.addNewWizardShortcut(BasicNewFolderResourceWizard.WIZARD_ID);
    layout.addNewWizardShortcut(BasicNewFileResourceWizard.WIZARD_ID);

    // Add "show views".
    layout.addShowViewShortcut(IPageLayout.ID_PROJECT_EXPLORER);
    layout.addShowViewShortcut(IPageLayout.ID_BOOKMARKS);
    layout.addShowViewShortcut(IPageLayout.ID_OUTLINE);
    layout.addShowViewShortcut(IPageLayout.ID_PROP_SHEET);
    layout.addShowViewShortcut(IPageLayout.ID_PROBLEM_VIEW);
    layout.addShowViewShortcut(IPageLayout.ID_PROGRESS_VIEW);
    layout.addShowViewShortcut(IPageLayout.ID_TASK_LIST);

    layout.addActionSet(IPageLayout.ID_NAVIGATE_ACTION_SET);
  }
Пример #14
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$
  }
  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);
  }
  /* (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();
    }
  }
  public void createInitialLayout(IPageLayout layout) {
    String editorArea = layout.getEditorArea();

    IFolderLayout folder =
        layout.createFolder("left", IPageLayout.LEFT, (float) 0.25, editorArea); // $NON-NLS-1$
    folder.addView(JavaUI.ID_PACKAGES);
    folder.addPlaceholder(JavaUI.ID_TYPE_HIERARCHY);
    folder.addView(IPageLayout.ID_RES_NAV);

    IFolderLayout outputfolder =
        layout.createFolder("bottom", IPageLayout.BOTTOM, (float) 0.75, editorArea); // $NON-NLS-1$
    outputfolder.addView(IPageLayout.ID_PROP_SHEET);
    outputfolder.addView(IPageLayout.ID_PROBLEM_VIEW);
    outputfolder.addView("org.jbpm.eclipse.task.views.TaskView");
    outputfolder.addView("org.drools.eclipse.debug.AuditView");
    //        outputfolder.addView("org.guvnor.tools.views.RepositoryView");
    outputfolder.addPlaceholder(JavaUI.ID_JAVADOC_VIEW);
    outputfolder.addPlaceholder(JavaUI.ID_SOURCE_VIEW);
    outputfolder.addPlaceholder(IPageLayout.ID_BOOKMARKS);
    outputfolder.addPlaceholder(IProgressConstants.PROGRESS_VIEW_ID);

    layout.addNewWizardShortcut(IKieConstants.BPMN2_MODELER_JBPM_WIZARD);
    layout.addNewWizardShortcut("org.jbpm.eclipse.new.project");

    layout.addView(IPageLayout.ID_OUTLINE, IPageLayout.RIGHT, (float) 0.75, editorArea);

    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_PACKAGES);
    layout.addShowViewShortcut(JavaUI.ID_TYPE_HIERARCHY);
    layout.addShowViewShortcut(JavaUI.ID_SOURCE_VIEW);
    layout.addShowViewShortcut(JavaUI.ID_JAVADOC_VIEW);

    // views - standard workbench
    layout.addShowViewShortcut(IPageLayout.ID_OUTLINE);
    layout.addShowViewShortcut(IPageLayout.ID_PROBLEM_VIEW);
    layout.addShowViewShortcut(IPageLayout.ID_RES_NAV);
    layout.addShowViewShortcut(IPageLayout.ID_TASK_LIST);
    layout.addShowViewShortcut(IProgressConstants.PROGRESS_VIEW_ID);

    // new actions - Java project creation wizard
    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.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$
  }