Пример #1
0
 @Override
 public void createInitialLayout(IPageLayout factory) {
   this.factory = factory;
   factory.setEditorAreaVisible(false);
   addViews();
   factory.setFixed(false);
 }
Пример #2
0
  public void createInitialLayout(IPageLayout layout) {
    String editorArea = layout.getEditorArea();
    layout.setEditorAreaVisible(false);
    layout.setFixed(true);

    layout.addStandaloneView(View.ID, false, IPageLayout.LEFT, 1.0f, editorArea);
  }
  /** Creates the initial layout for a page. */
  public void createInitialLayout(IPageLayout layout) {

    addFastViews(layout);
    addViewShortcuts(layout);
    addPerspectiveShortcuts(layout);

    String editorArea = layout.getEditorArea();
    IFolderLayout navigatorFolder =
        layout.createFolder("navigator-folder", IPageLayout.LEFT, 0.2f, editorArea);
    navigatorFolder.addView("org.eclipse.ui.navigator.ProjectExplorer");
    navigatorFolder.addView("org.dawnsci.fileviewer.FileViewer");
    {
      IFolderLayout folderLayout =
          layout.createFolder("folder", IPageLayout.RIGHT, 0.6f, IPageLayout.ID_EDITOR_AREA);
      folderLayout.addView("org.dawb.workbench.views.dataSetView");
      folderLayout.addView("org.dawb.workbench.plotting.views.toolPageView.2D");
      folderLayout.addView("org.dawb.common.ui.views.e4.headerTableView");
    }
    {
      IFolderLayout folderLayout =
          layout.createFolder("folder_1", IPageLayout.BOTTOM, 0.7f, IPageLayout.ID_EDITOR_AREA);
      folderLayout.addView("org.dawb.passerelle.views.ValueView");
      folderLayout.addView("org.eclipse.ui.views.ProgressView");
      folderLayout.addView("org.eclipse.ui.console.ConsoleView");
      folderLayout.addView("org.dawb.workbench.plotting.views.toolPageView.1D");
    }
  }
Пример #4
0
    /**
     * @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
  @Override
  public void createInitialLayout(IPageLayout aLayout) {
    String editorArea = aLayout.getEditorArea();
    aLayout.setEditorAreaVisible(true);

    aLayout.addStandaloneView(ContactsListView.VIEW_ID, true, IPageLayout.LEFT, 0.25f, editorArea);
    aLayout.getViewLayout(ContactsListView.VIEW_ID).setCloseable(false);
  }
  /**
   * 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$
  }
 @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);
 }
Пример #8
0
  public void createInitialLayout(IPageLayout layout) {
    String editorArea = layout.getEditorArea();
    layout.setEditorAreaVisible(false);

    layout.addStandaloneView(NavigationView.ID, false, IPageLayout.LEFT, 0.25f, editorArea);
    IFolderLayout folder = layout.createFolder("messages", IPageLayout.TOP, 0.5f, editorArea);
    folder.addPlaceholder(View.ID + ":*");
    folder.addView(View.ID);
    //		new File("").getParent()getAbsolutePath()
    layout.getViewLayout(NavigationView.ID).setCloseable(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);
    }
  }
  /*
   * 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());
    }
  }
Пример #11
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);
  }
Пример #12
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);
  }
Пример #13
0
  /**
   * Defines the initial layout for a page.
   *
   * @param layout The layout we are filling
   */
  private void defineLayout(IPageLayout layout) {
    // Editors are placed for free.
    String editorArea = layout.getEditorArea();

    // Top left.
    IFolderLayout topLeft =
        layout.createFolder("topLeft", IPageLayout.LEFT, (float) 0.26, editorArea); // $NON-NLS-1$
    if (isViewAvailable(IPageLayout.ID_PROJECT_EXPLORER)) {
      topLeft.addView(IPageLayout.ID_PROJECT_EXPLORER);
    }
    if (isViewAvailable("org.eclipse.jdt.ui.PackageExplorer")) { // $NON-NLS-1$
      topLeft.addView("org.eclipse.jdt.ui.PackageExplorer"); // $NON-NLS-1$
    }
    topLeft.addPlaceholder(IPageLayout.ID_BOOKMARKS);

    // Bottom left.
    IFolderLayout bottomLeft =
        layout.createFolder(
            "bottomLeft",
            IPageLayout.BOTTOM,
            (float) 0.50, // $NON-NLS-1$
            "topLeft"); //$NON-NLS-1$
    if (isViewAvailable(IPageLayout.ID_OUTLINE)) {
      bottomLeft.addView(IPageLayout.ID_OUTLINE);
    }
    if (isViewAvailable(ThumbNailView.VIEW_ID)) {
      bottomLeft.addView(ThumbNailView.VIEW_ID); // $NON-NLS-1$
    }

    // Bottom right.
    IFolderLayout bottomRight =
        layout.createFolder(
            "bottomRight",
            IPageLayout.BOTTOM,
            (float) 0.66, // $NON-NLS-1$
            editorArea);
    if (isViewAvailable("org.eclipse.pde.runtime.LogView")) { // $NON-NLS-1$
      bottomRight.addView("org.eclipse.pde.runtime.LogView"); // $NON-NLS-1$
    }
    if (isViewAvailable(IPageLayout.ID_PROP_SHEET)) {
      bottomRight.addView(IPageLayout.ID_PROP_SHEET);
    }
    if (isViewAvailable(IPageLayout.ID_PROBLEM_VIEW)) {
      bottomRight.addView(IPageLayout.ID_PROBLEM_VIEW);
    }
  }
Пример #14
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);
  }
Пример #15
0
  public void createInitialLayout(IPageLayout layout) {
    // Get the editor area
    String editorArea = layout.getEditorArea();

    // Left
    IFolderLayout left =
        layout.createFolder("left", IPageLayout.LEFT, 0.20f, editorArea); // $NON-NLS-1$
    left.addView(APP_EXPLORER_ID);

    // Bottom right: Console. Had to leave this programmatic to get the Console appear in bottom
    // right
    IFolderLayout bottomArea =
        layout.createFolder(
            "terminalArea",
            IPageLayout.BOTTOM,
            0.75f, //$NON-NLS-1$
            editorArea);
    bottomArea.addView(IConsoleConstants.ID_CONSOLE_VIEW);
  }
  /**
   * 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);
  }
Пример #17
0
  /* (non-Javadoc)
   * @see org.eclipse.ui.IPerspectiveFactory#createInitialLayout(org.eclipse.ui.IPageLayout)
   */
  @Override
  public void createInitialLayout(IPageLayout layout) {
    // editor is placed for free
    String editorArea = layout.getEditorArea();

    boolean leftAreaActive = false;
    for (String viewId : VIEWS_FOR_LEFT_AREA) {
      leftAreaActive |= PlatformUI.getWorkbench().getViewRegistry().find(viewId) != null;
      if (leftAreaActive) break;
    }

    if (leftAreaActive) {
      // place resource navigator to the left of editor area
      IFolderLayout left =
          layout.createFolder("left", IPageLayout.LEFT, 0.3f, editorArea); // $NON-NLS-1$

      for (String viewId : VIEWS_FOR_LEFT_AREA) {
        if (PlatformUI.getWorkbench().getViewRegistry().find(viewId) != null) {
          left.addView(viewId);
        }
      }
    } else {
      layout.createPlaceholderFolder("left", IPageLayout.LEFT, 0.3f, editorArea); // $NON-NLS-1$
    }

    // place console below the main editor
    IFolderLayout lowerRight =
        layout.createFolder("lowerRight", IPageLayout.BOTTOM, 0.7f, editorArea); // $NON-NLS-1$
    if (PlatformUI.getWorkbench().getViewRegistry().find("org.eclipse.pde.runtime.LogView")
        != null) //$NON-NLS-1$
    lowerRight.addView("org.eclipse.pde.runtime.LogView"); // $NON-NLS-1$
    if (PlatformUI.getWorkbench().getViewRegistry().find("org.eclipse.ui.views.TaskList")
        != null) //$NON-NLS-1$
    lowerRight.addPlaceholder("org.eclipse.ui.views.TaskList"); // $NON-NLS-1$

    // place details view port to the right of editor area
    IPlaceholderFolderLayout right =
        layout.createPlaceholderFolder(
            "right", IPageLayout.RIGHT, 0.75f, editorArea); // $NON-NLS-1$
    if (PlatformUI.getWorkbench().getViewRegistry().find(IPageLayout.ID_OUTLINE) != null)
      right.addPlaceholder(IPageLayout.ID_OUTLINE);
  }
  public void createInitialLayout(final IPageLayout layout) {

    /*
     * the sequence is VERY important how the folders are created !!!
     */

    layout.setEditorAreaVisible(false);

    // --------------------------------------------------------------------------------

    final IFolderLayout mapFolder =
        layout.createFolder( //
            FOLDER_ID_MAP, IPageLayout.RIGHT, 0.5f, IPageLayout.ID_EDITOR_AREA);

    mapFolder.addView(TourMapView.ID);
    mapFolder.addView(TourDataEditorView.ID);

    // --------------------------------------------------------------------------------

    final IFolderLayout chartFolder =
        layout.createFolder( //
            FOLDER_ID_CHART, IPageLayout.BOTTOM, 0.5f, FOLDER_ID_MAP);

    chartFolder.addView(TourChartView.ID);

    // --------------------------------------------------------------------------------

    final IFolderLayout listFolder =
        layout.createFolder(FOLDER_ID_LIST, IPageLayout.TOP, 0.6f, IPageLayout.ID_EDITOR_AREA);

    listFolder.addView(RawDataView.ID);
    listFolder.addView(TourBookView.ID);

    // --------------------------------------------------------------------------------

    final IFolderLayout markerFolder =
        layout.createFolder(FOLDER_ID_MARKER, IPageLayout.BOTTOM, 0.6f, FOLDER_ID_LIST);

    markerFolder.addView(TourStatisticsView.ID);
    markerFolder.addView(TourMarkerView.ID);
    markerFolder.addView(TourWaypointView.ID);
  }
Пример #19
0
  public void createInitialLayout(IPageLayout layout) {
    // TODO: This should define the "default" ALIVE perspective
    // E.g., allowing project management, dashboards, etc.
    // Other tools (plugins) will define their own perspectives for using them.
    String editorArea = layout.getEditorArea();

    layout.setEditorAreaVisible(true);
    layout.setFixed(false);

    // Build the window/place views:

    // Top left: Project Explorer view and Outline view placeholder
    IFolderLayout topLeft = layout.createFolder("topLeft", IPageLayout.LEFT, 0.15f, editorArea);
    IFolderLayout bottom = layout.createFolder("bottom", IPageLayout.BOTTOM, 0.5f, editorArea);
    bottom.addView("net.sf.ictalive.operetta.dashboard.DashboardPart");
    bottom.addView(IPageLayout.ID_PROP_SHEET);
    bottom.addView(IConsoleConstants.ID_CONSOLE_VIEW);

    topLeft.addView("net.sf.ictalive.navigator");
  }
Пример #20
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$
  }
Пример #21
0
  @Override
  public void createInitialLayout(IPageLayout layout) {
    // Get the editor area.
    String editorArea = layout.getEditorArea();

    String folderId = "iFFolder";
    IFolderLayout iFFolder =
        layout.createFolder(
            folderId, //$NON-NLS-1$
            IPageLayout.LEFT,
            0.5f,
            editorArea);
    iFFolder.addView(IFConfigurationView.ID);
    // iFFolder.addView(UMLConfigurationView.ID);
    layout.addStandaloneView(
        "fr.irit.ifclipse.views.NavigatorView",
        true /* show title */,
        IPageLayout.LEFT,
        1.0f,
        editorArea);

    layout.addStandaloneView(
        DiagnosticView.ID, true, IPageLayout.RIGHT, 0.30f, IFConfigurationView.ID);
    layout.addView(ScenarioView.ID, IPageLayout.RIGHT, 0.75f, editorArea);

    layout.addView(IFTransitionsView.ID, IPageLayout.BOTTOM, 0.54f, DiagnosticView.ID);

    IFolderLayout dynamicViewsFolder =
        layout.createFolder(
            "dynamicViewsFolder", //$NON-NLS-1$
            IPageLayout.BOTTOM,
            0.6f,
            folderId);
    dynamicViewsFolder.addPlaceholder(DynamicView.ID);

    IFolderLayout bottom =
        layout.createFolder(
            "bottom", //$NON-NLS-1$
            IPageLayout.BOTTOM,
            0.5f,
            IFTransitionsView.ID);
    bottom.addView(IPageLayout.ID_PROJECT_EXPLORER);
    bottom.addView(IPageLayout.ID_PROP_SHEET);
    bottom.addView(IConsoleConstants.ID_CONSOLE_VIEW);
    layout.setEditorAreaVisible(true);
  }
 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);
 }
  /** Initialisiert die Perspektive und fügt die Views hinzu */
  public void createInitialLayout(IPageLayout layout) {
    layout.setFixed(true);
    layout.setEditorAreaVisible(false);

    // Einfügen der Suche
    layout.addView(FilterView.ID, IPageLayout.TOP | IPageLayout.LEFT, 0.2f, layout.getEditorArea());
    layout.getViewLayout(FilterView.ID).setCloseable(false);
    layout.getViewLayout(FilterView.ID).setMoveable(false);

    // Einfügen des Views für die Rechnungen
    layout.addView(InvoiceTable.ID, IPageLayout.BOTTOM, 0.5f, layout.getEditorArea());
    layout.getViewLayout(InvoiceTable.ID).setCloseable(false);
    layout.getViewLayout(InvoiceTable.ID).setMoveable(false);
  }
 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);
 }
Пример #25
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);
  }
Пример #26
0
  @Override
  public void createInitialLayout(IPageLayout layout) {
    IFolderLayout leftTopFolder =
        layout.createFolder(LeftTopFolderId, IPageLayout.LEFT, 0.2f, layout.getEditorArea());

    IFolderLayout leftBottomFolder =
        layout.createFolder(LeftBottomFolderId, IPageLayout.BOTTOM, 0.4f, LeftTopFolderId);

    IFolderLayout bottomFolder =
        layout.createFolder(BottomFolderId, IPageLayout.BOTTOM, 0.7f, layout.getEditorArea());

    // Filling the left top folder
    leftTopFolder.addView(IPageLayout.ID_PROJECT_EXPLORER);

    // Filling the left bottom folder
    leftBottomFolder.addView(IPageLayout.ID_OUTLINE);
    leftBottomFolder.addView(ModelNavigatorView.ViewId);

    // Filling the bottom folder
    bottomFolder.addView(IPageLayout.ID_PROBLEM_VIEW);
    bottomFolder.addView(AttributeViewPart.VIEW_ID);
    bottomFolder.addView(IConsoleConstants.ID_CONSOLE_VIEW);
  }
Пример #27
0
  /**
   * Defines the initial layout for a page.
   *
   * @param layout The layout we are filling
   */
  public void defineLayout(IPageLayout layout) {
    // Editors are placed for free.
    String editorArea = layout.getEditorArea();

    // Top left.
    IFolderLayout topLeft =
        layout.createFolder("topLeft", IPageLayout.LEFT, 0.26f, editorArea); // $NON-NLS-1$
    topLeft.addView(IPageLayout.ID_PROJECT_EXPLORER);
    topLeft.addPlaceholder(IPageLayout.ID_BOOKMARKS);

    // Add a placeholder for the old navigator to maintain compatibility
    topLeft.addPlaceholder("org.eclipse.ui.views.ResourceNavigator"); // $NON-NLS-1$

    IFolderLayout right = layout.createFolder("right", IPageLayout.RIGHT, 0.66f, editorArea);
    right.addView(ItemView.ID);

    // Bottom left.
    IFolderLayout bottomLeft =
        layout.createFolder(
            "bottomLeft",
            IPageLayout.BOTTOM,
            (float) 0.50, // $NON-NLS-1$
            "topLeft"); //$NON-NLS-1$
    bottomLeft.addView(IPageLayout.ID_OUTLINE);

    // Bottom right.
    IFolderLayout bottomRight =
        layout.createFolder(
            "bottomRight",
            IPageLayout.BOTTOM,
            (float) 0.66, // $NON-NLS-1$
            editorArea);

    bottomRight.addView(IPageLayout.ID_PROP_SHEET);
    bottomRight.addPlaceholder(IConsoleConstants.ID_CONSOLE_VIEW);
  }
  /*
   * (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());
  }
Пример #29
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);
    }
  /*
   * Specifies what views are included in this perspective and their layout.
   */
  private void defineLayout(IPageLayout layout) {
    IFolderLayout leftFolder =
        layout.createFolder("leftFolder", IPageLayout.LEFT, 0.20f, layout.getEditorArea());

    leftFolder.addView(UIConstants.NAVIGATOR_VIEW_ID);

    IFolderLayout bottomFolder =
        layout.createFolder("bottomFolder", IPageLayout.BOTTOM, 0.60f, layout.getEditorArea());
    bottomFolder.addView(PagePreview.VIEW_ID);
    bottomFolder.addView("org.eclipse.pde.runtime.LogView");

    layout.addView(IPageLayout.ID_OUTLINE, IPageLayout.RIGHT, 0.80f, layout.getEditorArea());
  }