Package org.eclipse.ui

Examples of org.eclipse.ui.IFolderLayout


    /* (non-Javadoc)
     * @see org.eclipse.ui.IPerspectiveFactory#createInitialLayout(org.eclipse.ui.IPageLayout)
     */
    public void createInitialLayout(IPageLayout layout) {
        IFolderLayout prose = layout.createFolder("prose", IPageLayout.BOTTOM, (float) 0.66, layout.getEditorArea());
        prose.addView("ch.ethz.prose.eclipse.ProseRunView");

        IFolderLayout console = layout.createFolder("console", IPageLayout.RIGHT, (float) 0.45, "prose");
        console.addView(IConsoleConstants.ID_CONSOLE_VIEW);

        IFolderLayout navigator = layout.createFolder("navigator", IPageLayout.LEFT, (float) 0.25, layout.getEditorArea());
        navigator.addView(JavaUI.ID_PACKAGES);
        navigator.addView(JavaUI.ID_TYPE_HIERARCHY);

        layout.addActionSet(IDebugUIConstants.LAUNCH_ACTION_SET);
        layout.addActionSet(IDebugUIConstants.DEBUG_ACTION_SET);

        layout.addShowViewShortcut(IDebugUIConstants.ID_DEBUG_VIEW);
View Full Code Here


    private static final String VIEW_ID_SEARCH = "org.eclipse.search.ui.views.SearchView";

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

        IFolderLayout leftFolder = layout.createFolder("left", IPageLayout.LEFT, 0.25f, editorArea);
        leftFolder.addView(JavaUI.ID_PACKAGES);
        leftFolder.addView(JavaUI.ID_TYPE_HIERARCHY);

        layout.addView(PartConstants.VIEW_ID_REPOSITORIES, IPageLayout.BOTTOM, 0.66f, "left");

        IFolderLayout outputFolder = layout.createFolder("bottom", IPageLayout.BOTTOM, 0.75f, editorArea);
        outputFolder.addView(IPageLayout.ID_PROBLEM_VIEW);
        outputFolder.addView(JavaUI.ID_JAVADOC_VIEW);
        outputFolder.addView(PartConstants.VIEW_ID_IMPORTSEXPORTS);
        outputFolder.addPlaceholder(VIEW_ID_SEARCH);
        outputFolder.addPlaceholder(VIEW_ID_CONSOLE);
        outputFolder.addPlaceholder(IPageLayout.ID_BOOKMARKS);
        outputFolder.addPlaceholder(IProgressConstants.PROGRESS_VIEW_ID);
        outputFolder.addPlaceholder(VIEW_ID_JUNIT_RESULTS);

        IFolderLayout outlineFolder = layout.createFolder("right", IPageLayout.RIGHT, (float) 0.75, editorArea); //$NON-NLS-1$
        outlineFolder.addView(IPageLayout.ID_OUTLINE);
        outlineFolder.addPlaceholder(TemplatesView.ID);

        layout.addActionSet(IDebugUIConstants.LAUNCH_ACTION_SET);
        layout.addActionSet(JavaUI.ID_ACTION_SET);
        layout.addActionSet(JavaUI.ID_ELEMENT_CREATION_ACTION_SET);
        layout.addActionSet("bndtools.actions");
View Full Code Here

    public 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$
    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$

        // 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_TASK_LIST);
   
    }
View Full Code Here

        // Editor area
        String editorArea = layout.getEditorArea();

        // Browser folder
        IFolderLayout browserFolder = layout.createFolder( "browserFolder", IPageLayout.LEFT, ( float ) 0.25, //$NON-NLS-1$
            editorArea );
        browserFolder.addView( BrowserView.getId() );

        // Connection folder
        IFolderLayout connectionFolder = layout.createFolder( "connectionFolder", IPageLayout.BOTTOM, ( float ) 0.75, //$NON-NLS-1$
            "browserFolder" ); //$NON-NLS-1$
        connectionFolder.addView( ConnectionView.getId() );

        // Outline folder
        IFolderLayout outlineFolder = layout.createFolder( "outlineFolder", IPageLayout.RIGHT, ( float ) 0.75, //$NON-NLS-1$
            editorArea );
        outlineFolder.addView( IPageLayout.ID_OUTLINE );

        // Progress folder
        IFolderLayout progessFolder = layout.createFolder( "progressFolder", IPageLayout.BOTTOM, ( float ) 0.75, //$NON-NLS-1$
            "outlineFolder" ); //$NON-NLS-1$
        progessFolder.addView( "org.eclipse.ui.views.ProgressView" ); //$NON-NLS-1$

        // Log folder
        IFolderLayout logFolder = layout.createFolder( "logFolder", IPageLayout.BOTTOM, ( float ) 0.75, editorArea ); //$NON-NLS-1$
        logFolder.addView( ModificationLogsView.getId() );
        logFolder.addView( SearchLogsView.getId() );
        logFolder.addPlaceholder( "*" ); //$NON-NLS-1$

        // non-closable?
        boolean isIDE = BrowserCommonActivator.isIDEEnvironment();
        if ( !isIDE )
        {
View Full Code Here

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

        IFolderLayout leftFolder = layout.createFolder("left", IPageLayout.LEFT, 0.25f, editorArea);
        leftFolder.addView(JavaUI.ID_PACKAGES);
        leftFolder.addView(JavaUI.ID_TYPE_HIERARCHY);

        layout.addView(PartConstants.VIEW_ID_REPOSITORIES, IPageLayout.BOTTOM, 0.66f, "left");

        IFolderLayout outputFolder = layout.createFolder("bottom", IPageLayout.BOTTOM, 0.75f, editorArea);
        outputFolder.addView(IPageLayout.ID_PROBLEM_VIEW);
        outputFolder.addView(JavaUI.ID_JAVADOC_VIEW);
        outputFolder.addView(PartConstants.VIEW_ID_IMPORTSEXPORTS);
        outputFolder.addPlaceholder(VIEW_ID_SEARCH);
        outputFolder.addPlaceholder(VIEW_ID_CONSOLE);
        outputFolder.addPlaceholder(IPageLayout.ID_BOOKMARKS);
        outputFolder.addPlaceholder(IProgressConstants.PROGRESS_VIEW_ID);
        outputFolder.addPlaceholder(VIEW_ID_JUNIT_RESULTS);

        IFolderLayout outlineFolder = layout.createFolder("right", IPageLayout.RIGHT, (float) 0.75, editorArea); //$NON-NLS-1$
        outlineFolder.addView(IPageLayout.ID_OUTLINE);
        outlineFolder.addPlaceholder(TemplatesView.ID);

        layout.addActionSet(IDebugUIConstants.LAUNCH_ACTION_SET);
        layout.addActionSet(JavaUI.ID_ACTION_SET);
        layout.addActionSet(JavaUI.ID_ELEMENT_CREATION_ACTION_SET);
        layout.addActionSet("bndtools.actions");
View Full Code Here

         * Use ProjectExplorer vs PackageExplorer due to a bug with Drag and Drop on Mac OS X which affects PackageExplorer
         * but not ProjectExplorer. https://bugs.eclipse.org/bugs/show_bug.cgi?id=243529
         */
        String editorArea = layout.getEditorArea();

        IFolderLayout folder = layout.createFolder(
            "left", IPageLayout.LEFT, (float) 0.25, editorArea); //$NON-NLS-1$
        folder.addView(ID_PROJECT_EXPLORER);
        folder.addView(JavaUI.ID_TYPE_HIERARCHY);
        folder.addPlaceholder(IPageLayout.ID_RES_NAV);
        folder.addPlaceholder(SigilUI.ID_REPOSITORY_VIEW);
        folder.addView(IPageLayout.ID_OUTLINE);

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

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

        pageLayout.addActionSet(IPageLayout.ID_NAVIGATE_ACTION_SET);
    }

    private void defineLayout(final IPageLayout pageLayout) {
        // top left
        final IFolderLayout topLeft = pageLayout.createFolder(TOP_LEFT, IPageLayout.LEFT,
                0.30f, pageLayout.getEditorArea());
        topLeft.addView(ErlideUIConstants.NAVIGATOR_VIEW_ID);

        // center left
        final IFolderLayout centerLeft = pageLayout.createFolder(CENTER_LEFT,
                IPageLayout.BOTTOM, 0.20f, TOP_LEFT);
        centerLeft.addView(BROWSER_VIEW_ID);

        // bottom left
        final IFolderLayout bottomLeft = pageLayout.createFolder(BOTTOM_LEFT,
                IPageLayout.BOTTOM, 0.30f, CENTER_LEFT);
        bottomLeft.addView(TREE_VIEWER_VIEW_ID);

        // bottom center
        final IFolderLayout bottomCenter = pageLayout.createFolder(BOTTOM_CENTER,
                IPageLayout.BOTTOM, 0.60f, pageLayout.getEditorArea());
        bottomCenter.addView(IPageLayout.ID_PROBLEM_VIEW);
        bottomCenter.addView(CONTROL_PANEL_VIEW_ID);

        // right center
        final IFolderLayout rightCenter = pageLayout.createFolder(RIGHT_CENTER,
                IPageLayout.RIGHT, 0.75f, pageLayout.getEditorArea());
        rightCenter.addView(IPageLayout.ID_OUTLINE);

        // right bottom
        final IFolderLayout rightBottom = pageLayout.createFolder(RIGHT_BOTTOM,
                IPageLayout.RIGHT, 0.70f, BOTTOM_CENTER);
        rightBottom.addView(IConsoleConstants.ID_CONSOLE_VIEW);
    }
View Full Code Here

     *            the layout object
     */
    private void defineLayout(final IPageLayout layout) {
        final String editorArea = layout.getEditorArea();

        final IFolderLayout left = layout.createFolder("left", IPageLayout.LEFT,
                (float) 0.2, editorArea);
        // left.addView(IPageLayout.ID_RES_NAV);
        left.addView(ErlideUIConstants.NAVIGATOR_VIEW_ID);

        final IFolderLayout bottom = layout.createFolder("bottom", IPageLayout.BOTTOM,
                (float) 0.65, editorArea);
        bottom.addView(IPageLayout.ID_PROBLEM_VIEW);
        bottom.addView(IConsoleConstants.ID_CONSOLE_VIEW);
        bottom.addView(ProcessListView.ID);
        bottom.addView(LiveExpressionsView.ID);
        bottom.addPlaceholder(NewSearchUI.SEARCH_VIEW_ID);
        bottom.addPlaceholder(IPageLayout.ID_BOOKMARKS);
        bottom.addPlaceholder(IProgressConstants.PROGRESS_VIEW_ID);

        final float d = 0.7f;
        layout.addView(IPageLayout.ID_OUTLINE, IPageLayout.RIGHT, d, editorArea);

    }
View Full Code Here

public class JBPMPerspective 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 outputfolder= layout.createFolder("bottom", IPageLayout.BOTTOM, (float)0.75, editorArea); //$NON-NLS-1$
        outputfolder.addView(IPageLayout.ID_PROP_SHEET);
        outputfolder.addView(IPageLayout.ID_PROBLEM_VIEW);
        outputfolder.addView("org.jbpm.eclipse.task.views.TaskView");
        outputfolder.addView("org.drools.eclipse.debug.AuditView");
//        outputfolder.addView("org.guvnor.tools.views.RepositoryView");
        outputfolder.addPlaceholder(JavaUI.ID_JAVADOC_VIEW);
        outputfolder.addPlaceholder(JavaUI.ID_SOURCE_VIEW);
        outputfolder.addPlaceholder(IPageLayout.ID_BOOKMARKS);
        outputfolder.addPlaceholder(IProgressConstants.PROGRESS_VIEW_ID);

        layout.addNewWizardShortcut("org.jbpm.eclipse.new.bpmn2process");
        layout.addNewWizardShortcut("org.jbpm.eclipse.new.project");

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

     */
    public void createInitialLayout(IPageLayout layout) {
      layout.setEditorAreaVisible(true);
      layout.addPerspectiveShortcut(ID_PERSPECTIVE);

      IFolderLayout right = layout.createFolder("right", IPageLayout.RIGHT, (float)0.66, layout.getEditorArea());
      right.addView(IPageLayout.ID_OUTLINE);

      IFolderLayout bottonRight = layout.createFolder("bottonRight", IPageLayout.BOTTOM, (float)0.60, "right");
      bottonRight.addView(IPageLayout.ID_PROP_SHEET);
    }
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.