Package org.eclipse.ui

Examples of org.eclipse.ui.IFolderLayout


    layout.addShowViewShortcut(LogResourcesView.ID);
   
    String editorArea = layout.getEditorArea();
    layout.setEditorAreaVisible(true);
    layout.setFixed(false);
    IFolderLayout left = layout.createFolder("left", IPageLayout.LEFT, 0.33f, editorArea); //$NON-NLS-1$
    IFolderLayout rightBottom = layout.createFolder("rightBottom", IPageLayout.BOTTOM, 0.66f, editorArea); //$NON-NLS-1$
   
    left.addView(LogResourcesView.ID);
    rightBottom.addView(MessageFieldView.ID);
    rightBottom.addView(StacktraceFieldView.ID);
    rightBottom.addPlaceholder(IProgressConstants.PROGRESS_VIEW_ID);
  }
View Full Code Here


    defineActions(layout);
  }

  private void defineLayout(IPageLayout layout)
  {
    IFolderLayout left = layout.createFolder("Left", IPageLayout.LEFT,
        0.25f, IPageLayout.ID_EDITOR_AREA);
    IFolderLayout bottom = layout.createFolder("Bottom",
        IPageLayout.BOTTOM, 0.75f, IPageLayout.ID_EDITOR_AREA);
    IFolderLayout right = layout.createFolder("Right", IPageLayout.RIGHT,
        0.75f, IPageLayout.ID_EDITOR_AREA);

    addView(layout, left, IPageLayout.ID_RES_NAV);
    addView(layout, right, IPageLayout.ID_OUTLINE);
    addView(layout, right, ID_HIERARCHY);
View Full Code Here

  private void defineLayout(IPageLayout layout) {
    String editorArea = layout.getEditorArea();

    // left views
    IFolderLayout left = layout.createFolder("left", IPageLayout.LEFT,
            0.19f, editorArea);
    left.addView(CorpusExplorerView.ID);

    // right views
    IFolderLayout right = layout.createFolder("right", IPageLayout.RIGHT,
            0.70f, editorArea);

    right.addView(IPageLayout.ID_OUTLINE);
    right.addView(FeatureStructureBrowserView.ID);
   
    IFolderLayout rightBottomCorner  = layout.createFolder("rightBottomCorner", IPageLayout.BOTTOM,
            0.75f, "right");
    rightBottomCorner.addView(AnnotationStyleView.ID);

    // bottom views
    IFolderLayout rightBottom = layout.createFolder("rightBottom",
            IPageLayout.BOTTOM, 0.75f, editorArea);

    rightBottom.addView(EditView.ID);

    IFolderLayout leftBottom = layout.createFolder("leftBottom",
            IPageLayout.RIGHT, 0.5f, EditView.ID);

    leftBottom.addView(EditView.ID_2);
  }
View Full Code Here

  public void createInitialLayout(IPageLayout layout) {
    String editorArea = layout.getEditorArea();
    layout.setEditorAreaVisible(true);

    IFolderLayout folderNavigator = layout.createFolder("navigator",
        IPageLayout.LEFT, 0.3f, editorArea);
    folderNavigator.addPlaceholder(RunningEventView.ID + ":*");
    folderNavigator.addView(RunningEventView.ID);
    folderNavigator.addView(BackUpLogView.ID);

    layout.getViewLayout(RunningEventView.ID).setCloseable(false);
    layout.getViewLayout(BackUpLogView.ID).setCloseable(false);
  }
 
View Full Code Here

    String editorArea = layout.getEditorArea();
    if (EOModelerPerspectiveFactory._locked) {
      layout.setFixed(true);
    }

    IFolderLayout topLeft = layout.createFolder("left", IPageLayout.LEFT, 0.45f, editorArea);
    topLeft.addView(IPageLayout.ID_OUTLINE);
    // topLeft.addView("org.eclipse.jdt.ui.PackageExplorer");

    IFolderLayout bottomRight = layout.createFolder("bottomLeft", IPageLayout.BOTTOM, 0.50f, "left");
    bottomRight.addView(IPageLayout.ID_PROP_SHEET);
    bottomRight.addView(IPageLayout.ID_PROBLEM_VIEW);

    if (EOModelerPerspectiveFactory._locked) {
      layout.getViewLayout(IPageLayout.ID_OUTLINE).setCloseable(false);
      layout.getViewLayout(IPageLayout.ID_OUTLINE).setMoveable(false);
      layout.getViewLayout(IPageLayout.ID_PROP_SHEET).setCloseable(false);
View Full Code Here

  public static final String ID_WO_PACKAGES = "org.objectstyle.wolips.jdt.ui.WOPackageExplorer";

  public void createInitialLayout(IPageLayout layout) {
    String editorArea = layout.getEditorArea();

    IFolderLayout leftFolder = layout.createFolder("left", IPageLayout.LEFT, (float) 0.25, editorArea); //$NON-NLS-1$
    leftFolder.addView(PerspectiveFactory.ID_WO_PACKAGES);
    leftFolder.addView(JavaUI.ID_TYPE_HIERARCHY);
    leftFolder.addPlaceholder(IPageLayout.ID_RES_NAV);
   
    IFolderLayout leftBottomFolder = layout.createFolder("left_bottom", IPageLayout.BOTTOM, (float) 0.65, "left");
    leftBottomFolder.addView(PerspectiveFactory.ID_RELATED);
   
    IFolderLayout bottomFolder = layout.createFolder("bottom", IPageLayout.BOTTOM, (float) 0.75, editorArea); //$NON-NLS-1$
    bottomFolder.addView(IPageLayout.ID_PROBLEM_VIEW);
    //bottomFolder.addView(PerspectiveFactory.ID_BINDINGS);
    bottomFolder.addView(IConsoleConstants.ID_CONSOLE_VIEW);
    bottomFolder.addView(JavaUI.ID_JAVADOC_VIEW);
    bottomFolder.addView(JavaUI.ID_SOURCE_VIEW);
    bottomFolder.addPlaceholder(NewSearchUI.SEARCH_VIEW_ID);
    bottomFolder.addPlaceholder(IConsoleConstants.ID_CONSOLE_VIEW);
    bottomFolder.addPlaceholder(IPageLayout.ID_BOOKMARKS);
    bottomFolder.addPlaceholder(IProgressConstants.PROGRESS_VIEW_ID);

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

    layout.addActionSet(IDebugUIConstants.LAUNCH_ACTION_SET);
    layout.addActionSet(JavaUI.ID_ACTION_SET);
View Full Code Here

  @Override
  public void createInitialLayout(final IPageLayout layout) {
    String editorId = layout.getEditorArea();

    IFolderLayout bottom1 = layout.createFolder("bottom1", IPageLayout.BOTTOM, .75f, editorId);
    bottom1.addView(IPageLayout.ID_PROBLEM_VIEW);
    bottom1.addView(IPageLayout.ID_TASK_LIST);
    bottom1.addView(IConsoleConstants.ID_CONSOLE_VIEW);

    IFolderLayout bottom2 = layout.createFolder("bottom2", IPageLayout.RIGHT, .5f, "bottom1");
    bottom2.addView("com.github.jknack.Antlr4.syntaxDiagram");
    bottom2.addView("antlr4.parseTreeView");

    IFolderLayout folder = layout.createFolder("left", IPageLayout.LEFT, .22f, editorId);
    folder.addView(IPageLayout.ID_PROJECT_EXPLORER);

    IFolderLayout outline = layout.createFolder("right", IPageLayout.RIGHT, .7f, editorId);
    outline.addView(IPageLayout.ID_OUTLINE);
  }
View Full Code Here

    private void addViews() {
        // Creates the overall folder layout.
        // Note that each new Folder uses a percentage of the remaining
        // EditorArea.

        IFolderLayout left = factory.createFolder("left", IPageLayout.LEFT, 0.25f, factory.getEditorArea());
        left.addView(IPageLayout.ID_PROJECT_EXPLORER);

        IFolderLayout rightBottom = factory.createFolder("rightBottom", IPageLayout.BOTTOM, 0.75f, factory.getEditorArea());// NON-NLS-1
        rightBottom.addView(IConsoleConstants.ID_CONSOLE_VIEW);
        rightBottom.addView(IPageLayout.ID_PROBLEM_VIEW);

        IFolderLayout rightTopRight = factory.createFolder("rightTopRight", IPageLayout.RIGHT, 0.75f, factory.getEditorArea());
        rightTopRight.addView(IPageLayout.ID_OUTLINE);
        rightTopRight.addView(IPageLayout.ID_TASK_LIST);
    }
View Full Code Here

  }

  protected void createFolders(IPageLayout layout) {
    final String editorArea = layout.getEditorArea();

    IFolderLayout rightFolder = layout.createFolder("right", IPageLayout.RIGHT, (float) 0.75,
            editorArea);
    rightFolder.addView(IPageLayout.ID_OUTLINE);
    rightFolder.addView(TYPE_BROWSER);
    rightFolder.addView(PALETTE_VIEW);
    rightFolder.addView("BASIC_STREAM");
    rightFolder.addView(ID_TRUEPOSITIVE_VIEW);
    rightFolder.addView(ID_FALSEPOSITIVEVIEW);
    rightFolder.addView(ID_FALSENEGATIVEVIEW);
    // Folder
    IFolderLayout folder = layout.createFolder("left", IPageLayout.LEFT, (float) 0.2, editorArea); //$NON-NLS-1$   

    folder.addView(SCRIPT_EXPLORER);
    folder.addPlaceholder(IPageLayout.ID_BOOKMARKS);

    // Output folder
    IFolderLayout outputFolder = layout.createFolder(
            "bottom", IPageLayout.BOTTOM, (float) 0.75, editorArea); //$NON-NLS-1$

    outputFolder.addView(IPageLayout.ID_PROBLEM_VIEW);
    outputFolder.addView(IPageLayout.ID_TASK_LIST);
    outputFolder.addView(SELECTION_VIEW);
    outputFolder.addView(ANNOTATION_EDITOR);
    outputFolder.addView(ID_TESTING_VIEW);

    outputFolder.addPlaceholder(IPageLayout.ID_BOOKMARKS);
    outputFolder.addPlaceholder(IProgressConstants.PROGRESS_VIEW_ID);
  }
View Full Code Here

  }

  public void createFolders(IPageLayout layout) {
    final String editorArea = layout.getEditorArea();

    IFolderLayout rightFolder = layout.createFolder("rightFolder", IPageLayout.RIGHT, (float) 0.75,
            editorArea);
    rightFolder.addView(APPLIED_RULES);
    rightFolder.addView(SELECTION_RULES);
    rightFolder.addView(RULE_LIST);
    rightFolder.addView(TYPE_BROWSER);
    rightFolder.addView(SELECTION_VIEW);
   
    IFolderLayout ruleFolder = layout.createFolder("ruleFolder", IPageLayout.BOTTOM, (float) 0.6,
            "rightFolder");
    ruleFolder.addView(RULE_ELEMENTS);
    ruleFolder.addView(CREATED_BY);
   
    IFolderLayout navigationFolder = layout.createFolder("left", IPageLayout.LEFT, (float) 0.2,
            editorArea);
    navigationFolder.addView(SCRIPT_EXPLORER);

    IFolderLayout matchedFolder = layout.createFolder("matchedFolder", IPageLayout.BOTTOM,
            (float) 0.75, editorArea);
    matchedFolder.addView(MATCHED_RULES);

    IFolderLayout failedFolder = layout.createFolder("failedFolder", IPageLayout.BOTTOM,
            (float) 0.75, editorArea);
    failedFolder.addView(FAILED_RULES);

  }
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.