Package org.eclipse.ui

Examples of org.eclipse.ui.IPlaceholderFolderLayout


        layout = new PageLayout(container, getViewFactory(),
                editorArea, descriptor);
        layout.setFixed(descriptor.getFixed());

        // add the placeholders for the sticky folders and their contents 
        IPlaceholderFolderLayout stickyFolderRight = null, stickyFolderLeft = null, stickyFolderTop = null, stickyFolderBottom = null;

        IStickyViewDescriptor[] descs = WorkbenchPlugin.getDefault()
                .getViewRegistry().getStickyViews();
        for (int i = 0; i < descs.length; i++) {
            IStickyViewDescriptor stickyViewDescriptor = descs[i];
            String id = stickyViewDescriptor.getId();
            switch (stickyViewDescriptor.getLocation()) {
            case IPageLayout.RIGHT:
                if (stickyFolderRight == null) {
          stickyFolderRight = layout
                            .createPlaceholderFolder(
                                    StickyViewDescriptor.STICKY_FOLDER_RIGHT,
                                    IPageLayout.RIGHT, .75f,
                                    IPageLayout.ID_EDITOR_AREA);
        }
                stickyFolderRight.addPlaceholder(id);
                break;
            case IPageLayout.LEFT:
                if (stickyFolderLeft == null) {
          stickyFolderLeft = layout.createPlaceholderFolder(
                            StickyViewDescriptor.STICKY_FOLDER_LEFT,
View Full Code Here


        folder.setRealContainer(new ViewStack(rootLayoutContainer.page));
        folder.setID(folderId);
        addPart(folder, folderId, relationship, ratio, refId);

        // Create a wrapper.
        IPlaceholderFolderLayout layout = new PlaceholderFolderLayout(this, folder);
       
        mapFolderToFolderLayout.put(folder,layout);
       
        return layout;
    }
View Full Code Here

    {
        if (!mapIDtoFolder.containsKey(viewId))
            return null;
               
        ViewStack folder = (ViewStack) mapIDtoFolder.get(viewId);
        IPlaceholderFolderLayout layout = null;
        if (!mapFolderToFolderLayout.containsKey(folder))
        {
            layout = new FolderLayout(this, folder, viewFactory);
            mapFolderToFolderLayout.put(folder, layout);
        }
View Full Code Here

        IFolderLayout topLeft = layout.createFolder( "topLeft", IPageLayout.LEFT, 0.33f, editorArea);//$NON-NLS-1$
        topLeft.addView(NavigationView.ID);
    layout.getViewLayout(NavigationView.ID).setCloseable(false);

        // Bottom left.
        IPlaceholderFolderLayout bottomLeft = layout.createPlaceholderFolder( "bottomLeft", IPageLayout.BOTTOM, 0.60f, "topLeft"); //$NON-NLS-1$
        bottomLeft.addPlaceholder(CardView.ID);
  }
View Full Code Here

TOP

Related Classes of org.eclipse.ui.IPlaceholderFolderLayout

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.