/**
   * Creates a layout containing the following views: Metadata Tree, Dump Contents and Dump Summary,
   * with no editor area.
   *
   * @see org.eclipse.ui.IPerspectiveFactory#createInitialLayout( org.eclipse.ui.IPageLayout)
   */
  @Override
  public void createInitialLayout(IPageLayout layout) {
    String editorAreaId = layout.getEditorArea();

    layout.setEditorAreaVisible(false);

    IFolderLayout left =
        layout.createFolder("left", IPageLayout.LEFT, (float) 0.30, editorAreaId); // $NON-NLS-1$
    left.addView(MetadataTreeView.VIEW_ID);

    IFolderLayout right =
        layout.createFolder("right", IPageLayout.RIGHT, (float) 0.5, editorAreaId); // $NON-NLS-1$
    right.addView(DumpContentsView.VIEW_ID);

    IFolderLayout bottom =
        layout.createFolder(
            "bottom", IPageLayout.BOTTOM, (float) 0.70, "right"); // $NON-NLS-1$ //$NON-NLS-2$
    bottom.addView(DumpSummaryView.VIEW_ID);
  }
예제 #2
0
 public void createInitialLayout(IPageLayout layout) {
   // layout.addView("org.carrot2.workbench.views.aduna", IPageLayout.RIGHT, 0.3f,
   // layout.getEditorArea());
   layout.setEditorAreaVisible(true);
 }