Package org.eclipse.ui.internal

Examples of org.eclipse.ui.internal.LayoutPart


     */
    private void splitEditorArea() {
        IWorkbenchPage workbenchPage = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();
        IWorkbenchPart part = workbenchPage.getActivePart();
        PartPane partPane = ((PartSite) part.getSite()).getPane();
        LayoutPart layoutPart = partPane.getPart();

        IEditorReference[] editorReferences = workbenchPage.getEditorReferences();
        // 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);
                }
View Full Code Here

TOP

Related Classes of org.eclipse.ui.internal.LayoutPart

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.