Package org.eclipse.ui

Examples of org.eclipse.ui.IFolderLayout


public class DefaultPerspectiveFactory implements IPerspectiveFactory {

  @Override
  public void createInitialLayout(IPageLayout layout) {
    IFolderLayout topLeftFolder = layout.createFolder("topLeft", IPageLayout.LEFT, 0.35f, IPageLayout.ID_EDITOR_AREA);
    IFolderLayout bottomLeftFolder = layout.createFolder("bottomLeft", IPageLayout.BOTTOM, 0.30f, "topLeft");
   
    IFolderLayout bottom = layout.createFolder("bottom", IPageLayout.BOTTOM, 0.30f, IPageLayout.ID_EDITOR_AREA);
    bottom.addView(EquityCurveView.VIEW_ID);
   
    IFolderLayout topRightFolder = layout.createFolder("topRight", IPageLayout.RIGHT, 0.50f, IPageLayout.ID_EDITOR_AREA);
   
    topLeftFolder.addView(MarketDataManagersView.VIEW_ID);
   
    bottomLeftFolder.addView(TradingManagersView.VIEW_ID);
   
    topRightFolder.addView(PositionView.VIEW_ID);
    topRightFolder.addView(TradingStatsView.VIEW_ID);
  }
View Full Code Here


    //Editors are in assumed to be in the center, so there is no placement info for them.
    String editorAreaIdentifier = layout.getEditorArea();

    // Left set of stuff
    float leftPanelSizeAsRatio = 0.2f;
    IFolderLayout leftPanels =
      layout.createFolder("left", IPageLayout.LEFT, leftPanelSizeAsRatio, editorAreaIdentifier);

    leftPanels.addView("processing.plugin.ui.views.sketchView");
     
    // Bottom set of tabs
    // strangely, this number is the screen ratio the bottom panel should *not* take up
    // which is different than the fast view size as ratio
    float bottomPanelSizeAsInverseRatio = 0.7f;
    IFolderLayout bottomPanels =
      layout.createFolder("bottom", IPageLayout.BOTTOM, bottomPanelSizeAsInverseRatio, editorAreaIdentifier);
    bottomPanels.addView(IPageLayout.ID_PROBLEM_VIEW);
    bottomPanels.addView("org.eclipse.ui.console.ConsoleView")}
View Full Code Here

   * @param layout the layout.
   */
  private void defineLayout(IPageLayout layout) {
    String editorArea = layout.getEditorArea()
   
    IFolderLayout bottom = layout.createFolder(BOTTOM, IPageLayout.BOTTOM, (float) 0.70,
                                              editorArea);
    bottom.addView(ID_REVIEW_TABLE_VIEW);
    IFolderLayout bottomRight = layout.createFolder("bottomRight", IPageLayout.RIGHT, (float) 0.50,
                                                     BOTTOM);
    bottomRight.addView(ID_REVIEW_EDITOR_VIEW);
    bottomRight.addPlaceholder(IPageLayout.ID_PROBLEM_VIEW);
//    bottomRight.addPlaceholder(JavaUI.ID_JAVADOC_VIEW);
//    bottomRight.addPlaceholder(JavaUI.ID_SOURCE_VIEW);
    bottomRight.addPlaceholder(NewSearchUI.SEARCH_VIEW_ID);
    bottomRight.addPlaceholder(IConsoleConstants.ID_CONSOLE_VIEW);
    bottomRight.addPlaceholder(IPageLayout.ID_BOOKMARKS);
    bottomRight.addPlaceholder(IProgressConstants.PROGRESS_VIEW_ID);
   
    IFolderLayout folder = layout.createFolder("topLeft", IPageLayout.LEFT, (float) 0.25,
                                               editorArea);
    // TODO Use this constant instead of the string after support for Eclipse 3.4 has been dropped
//    folder.addView(IPageLayout.ID_PROJECT_EXPLORER);
    folder.addView("org.eclipse.ui.navigator.ProjectExplorer");
   
//    folder.addView(JavaUI.ID_PACKAGES);
//    folder.addView(IPageLayout.ID_RES_NAV);
//    folder.addPlaceholder(JavaUI.ID_TYPE_HIERARCHY);
   
View Full Code Here

TOP

Related Classes of org.eclipse.ui.IFolderLayout

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.