Examples of ILayoutContainer


Examples of org.eclipse.ui.internal.ILayoutContainer

        // Do it only if we have more that one editor
        if (editorReferences.length > 1) {
            // Get PartPane that correspond to the active editor
            PartPane currentEditorPartPane = ((PartSite) workbenchPage.getActiveEditor().getSite()).getPane();
            EditorSashContainer editorSashContainer = null;
            ILayoutContainer rootLayoutContainer = layoutPart.getContainer();
            if (rootLayoutContainer instanceof LayoutPart) {
                ILayoutContainer editorSashLayoutContainer = ((LayoutPart) rootLayoutContainer).getContainer();
                if (editorSashLayoutContainer instanceof EditorSashContainer) {
                    editorSashContainer = ((EditorSashContainer) editorSashLayoutContainer);
                }
            }
            /*
             * Create a new part stack (i.e. a workbook) to home the currentEditorPartPane which hold the active editor
             */
            PartStack newPart = createStack(editorSashContainer);
            editorSashContainer.stack(currentEditorPartPane, newPart);
            if (rootLayoutContainer instanceof LayoutPart) {
                ILayoutContainer cont = ((LayoutPart) rootLayoutContainer).getContainer();
                if (cont instanceof PartSashContainer) {
                    // "Split" the editor area by adding the new part
                    PartSashContainer c = (PartSashContainer) cont;
                    c.add(newPart, IPageLayout.BOTTOM, 0.50f, c.findBottomRight());
                }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.