Package org.eclipse.ui

Examples of org.eclipse.ui.IFolderLayout


        // Allowing the Editor Area
        layout.setEditorAreaVisible( true );
        String editorAreaId = layout.getEditorArea();

        // Creating top left folder
        IFolderLayout topLeftFolder = layout.createFolder( topLeftFolderId, IPageLayout.LEFT, 0.3f, editorAreaId );

        // Creating bottom folder
        IFolderLayout bottomFolder = layout.createFolder( bottomFolderId, IPageLayout.BOTTOM, 0.7f, editorAreaId );

        // Adding Views
        topLeftFolder.addView( SchemaView.ID );
        topLeftFolder.addView( HierarchyView.ID );
        layout.addStandaloneView( ProjectsView.ID, true, IPageLayout.BOTTOM, 0.7f, topLeftFolderId );
        bottomFolder.addView( ProblemsView.ID );
        bottomFolder.addView( SearchView.ID );

        // Setting up non-closeable views
        layout.getViewLayout( SchemaView.ID ).setCloseable( false );
        layout.getViewLayout( ProjectsView.ID ).setCloseable( false );
View Full Code Here


    layout.addNewWizardShortcut("org.apache.hadoop.eclipse.NewDriverWizard");
    layout.addNewWizardShortcut("org.apache.hadoop.eclipse.NewMapperWizard");
    layout
        .addNewWizardShortcut("org.apache.hadoop.eclipse.NewReducerWizard");

    IFolderLayout left =
        layout.createFolder("org.apache.hadoop.eclipse.perspective.left",
            IPageLayout.LEFT, 0.2f, layout.getEditorArea());
    left.addView("org.eclipse.ui.navigator.ProjectExplorer");

    IFolderLayout bottom =
        layout.createFolder("org.apache.hadoop.eclipse.perspective.bottom",
            IPageLayout.BOTTOM, 0.7f, layout.getEditorArea());
    bottom.addView(IPageLayout.ID_PROBLEM_VIEW);
    bottom.addView(IPageLayout.ID_TASK_LIST);
    bottom.addView(JavaUI.ID_JAVADOC_VIEW);
    bottom.addView("org.apache.hadoop.eclipse.view.servers");
    bottom.addPlaceholder(JavaUI.ID_SOURCE_VIEW);
    bottom.addPlaceholder(IPageLayout.ID_PROGRESS_VIEW);
    bottom.addPlaceholder(IConsoleConstants.ID_CONSOLE_VIEW);
    bottom.addPlaceholder(IPageLayout.ID_BOOKMARKS);

    IFolderLayout right =
        layout.createFolder("org.apache.hadoop.eclipse.perspective.right",
            IPageLayout.RIGHT, 0.8f, layout.getEditorArea());
    right.addView(IPageLayout.ID_OUTLINE);
    right.addView("org.eclipse.ui.cheatsheets.views.CheatSheetView");
    // right.addView(layout.ID); .. cheat sheet here

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

*/
public class GuvnorRepExplorerPerspective implements IPerspectiveFactory {

    public void createInitialLayout(IPageLayout layout) {
        String editorArea = layout.getEditorArea();
        IFolderLayout top =
            layout.createFolder("top", IPageLayout.LEFT, 0.30f, editorArea); //$NON-NLS-1$
        top.addView(IGuvnorConstants.REPVIEW_ID);
        IFolderLayout botLeft =
            layout.createFolder("botleft", IPageLayout.BOTTOM, 0.70f, "top"); //$NON-NLS-1$ //$NON-NLS-2$
        botLeft.addView(IPageLayout.ID_PROP_SHEET);
        layout.addView(IGuvnorConstants.RESHISTORYVIEW_ID, IPageLayout.BOTTOM, 0.70f, editorArea);
        IFolderLayout right =
            layout.createFolder("right", IPageLayout.RIGHT, 0.70f, editorArea); //$NON-NLS-1$
        right.addView(IPageLayout.ID_RES_NAV);
        layout.setEditorAreaVisible(true);

        addActions(layout);
    }
View Full Code Here

     * @param layout
     * @param editorArea
     */
    public void defineLayout(IPageLayout layout) {
        String editorArea = layout.getEditorArea();
        IFolderLayout topLeft = layout.createFolder("topLeft", IPageLayout.LEFT, (float) 0.26, editorArea); //$NON-NLS-1$
        topLeft.addView("org.python.pydev.navigator.view");

        IFolderLayout outputfolder = layout.createFolder("bottom", IPageLayout.BOTTOM, (float) 0.75, editorArea); //$NON-NLS-1$
        outputfolder.addView(IPageLayout.ID_PROBLEM_VIEW);
        outputfolder.addPlaceholder(NewSearchUI.SEARCH_VIEW_ID);
        outputfolder.addPlaceholder(IConsoleConstants.ID_CONSOLE_VIEW);
        outputfolder.addPlaceholder(IPageLayout.ID_BOOKMARKS);
        outputfolder.addPlaceholder(IProgressConstants.PROGRESS_VIEW_ID);

        layout.addView(IPageLayout.ID_OUTLINE, IPageLayout.RIGHT, (float) 0.75, editorArea);
    }
View Full Code Here

  public static final String ID = "com.onpositive.mapper.perspective";
 
  @Override
  public void createInitialLayout(IPageLayout layout) {
    String FOLDER1_ID = "LeftFolder";
    IFolderLayout leftFolder =  layout.createFolder(FOLDER1_ID, IPageLayout.LEFT, (float)0.25, IPageLayout.ID_EDITOR_AREA);
    leftFolder.addView(LayerView.ID);
    leftFolder.addView(IPageLayout.ID_PROJECT_EXPLORER);
    //leftFolder.addView(AccessoriesGalleryPaletteView.ID);
   
    String FOLDER2_ID = "BottomFolder";
    IFolderLayout bottomFolder =  layout.createFolder(FOLDER2_ID, IPageLayout.BOTTOM, (float)0.5, FOLDER1_ID);   
    bottomFolder.addView(TilesetView.ID);
  }
View Full Code Here

  public void createInitialLayout(IPageLayout layout) {

    // repositories on the left hand
    layout.addView(RepositoriesView.VIEW_ID, IPageLayout.LEFT, (float) 0.5, layout.getEditorArea());

    IFolderLayout bottom = layout.createFolder(
        "bottom", IPageLayout.BOTTOM, (float) 0.5, //$NON-NLS-1$
        layout.getEditorArea());

    // Views under editor area
    bottom.addView(IPageLayout.ID_PROP_SHEET);
    bottom.addView(IHistoryView.VIEW_ID);
    bottom.addView(ISynchronizeView.VIEW_ID);
    bottom.addView(StagingView.VIEW_ID);
    bottom.addView(ReflogView.VIEW_ID);

    // place holder for Package Explorer under repositories
    layout.addPlaceholder("org.eclipse.jdt.ui.PackageExplorer", IPageLayout.BOTTOM, (float) 0.7, RepositoriesView.VIEW_ID); //$NON-NLS-1$

    // shortcut to Package Explorer
View Full Code Here

public class DroolsPerspective implements IPerspectiveFactory {

    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 rulesfolder= layout.createFolder("leftbottom", IPageLayout.BOTTOM, (float)0.5, "left"); //$NON-NLS-1$
        rulesfolder.addView(IDroolsConstants.RULES_VIEW);

        IFolderLayout outputfolder= layout.createFolder("bottom", IPageLayout.BOTTOM, (float)0.75, editorArea); //$NON-NLS-1$
        outputfolder.addView(IPageLayout.ID_PROBLEM_VIEW);
        outputfolder.addView(IPageLayout.ID_PROP_SHEET);
        outputfolder.addPlaceholder(JavaUI.ID_JAVADOC_VIEW);
        outputfolder.addPlaceholder(JavaUI.ID_SOURCE_VIEW);
        outputfolder.addPlaceholder(IConsoleConstants.ID_CONSOLE_VIEW);
        outputfolder.addPlaceholder(IPageLayout.ID_BOOKMARKS);
        outputfolder.addPlaceholder(IProgressConstants.PROGRESS_VIEW_ID);

        // *** Drools-specific extensions ***
        outputfolder.addView(IDroolsConstants.AUDIT_VIEW);
        layout.addShowViewShortcut(IDroolsConstants.AUDIT_VIEW);
        layout.addNewWizardShortcut("org.drools.eclipse.new.file");
        layout.addNewWizardShortcut("org.drools.eclipse.new.dsl");
        layout.addNewWizardShortcut("org.drools.eclipse.wizards.new.project");
        // **********************************
 
View Full Code Here

    String editorArea = layout.getEditorArea();

    // Everything is based off the editor area

    // Top left: Resource Navigator view and PHP Explorer
    IFolderLayout topLeft = layout.createFolder(TOP_LEFT_LOCATION,
        IPageLayout.LEFT, 0.22f, editorArea);
    topLeft.addView(ID_EXPLORER);
    // topLeft.addView(ID_TYPEHIERARCHY);

    // Bottom: Attributes view, Problem View, Task List, placeholder for
    // Design View Log
    IFolderLayout bottom = layout.createFolder(BOTTOM_LOCATION,
        IPageLayout.BOTTOM, 0.75f, editorArea);
    bottom.addView(IPageLayout.ID_PROBLEM_VIEW);
    // bottom.addView(IPageLayout.ID_TASK_LIST);
    bottom.addView(IConsoleConstants.ID_CONSOLE_VIEW);
    bottom.addPlaceholder(IPageLayout.ID_BOOKMARKS);

    IFolderLayout outlineFolder = layout.createFolder(TOP_RIGHT_LOCATION,
        IPageLayout.RIGHT, (float) 0.75, editorArea);
    outlineFolder.addView(IPageLayout.ID_OUTLINE);
    outlineFolder.addPlaceholder(ID_PROJECT_OUTLINE);
    outlineFolder.addPlaceholder(ID_MVC);
    outlineFolder.addPlaceholder(ID_FUNCTIONS);
  }
View Full Code Here

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

        IFolderLayout folder = layout.createFolder("left", IPageLayout.LEFT, (float) 0.25, editorArea);
        folder.addView(JavaUI.ID_PACKAGES);
        folder.addPlaceholder(IPageLayout.ID_RES_NAV);

        IFolderLayout outputfolder = layout.createFolder("bottom", IPageLayout.BOTTOM, (float) 0.7, editorArea);
        outputfolder.addView(IPageLayout.ID_PROBLEM_VIEW);
        outputfolder.addView(UIConstants.RUN_TEST_VIEW_ID);
        outputfolder.addView(UIConstants.DEBUG_LOG_VIEW_ID);
        outputfolder.addView(ISynchronizeView.VIEW_ID);

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

        layout.addActionSet(UIConstants.PLUGIN_PREFIX + ".actionset");
View Full Code Here

* Add views to the perspective
*/
private void addViews() {

  // Component results view put on bottom
  IFolderLayout bottom =
    this.factory.createFolder(
      "bottomRight", //NON-NLS-1
      IPageLayout.BOTTOM,
      0.5f,
      this.factory.getEditorArea());
  bottom.addView("org.eclipse.test.internal.performance.results.ui.ComponentsResultsView");

  // Components and Builds view put on perspective top left
  IFolderLayout topLeft =
    this.factory.createFolder(
      "topLeft", //NON-NLS-1
      IPageLayout.LEFT,
      0.5f,
      this.factory.getEditorArea());
  topLeft.addView("org.eclipse.test.internal.performance.results.ui.ComponentsView"); //NON-NLS-1
  topLeft.addView("org.eclipse.test.internal.performance.results.ui.BuildsView"); //NON-NLS-1

  // Properties view put on perspective top right
  IFolderLayout topRight =
    this.factory.createFolder(
      "topRight", //NON-NLS-1
      IPageLayout.RIGHT,
      0.5f,
      this.factory.getEditorArea());
  topRight.addView(IPageLayout.ID_PROP_SHEET); //NON-NLS-1

  this.factory.setEditorAreaVisible(false);
}
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.