Package org.eclipse.ui.internal

Examples of org.eclipse.ui.internal.EditorSashContainer


    WorkbenchPage wPage = (WorkbenchPage)page;
   
    // editorPresentation
    EditorAreaHelper editorAreaHelper = wPage.getEditorPresentation();
   
    EditorSashContainer editorSashContainer = (EditorSashContainer)editorAreaHelper.getLayoutPart();
   
    LayoutTree layoutTree = editorSashContainer.getLayoutTree();
   
    Composite parent = editorSashContainer.getParent();
   
    //parent.setBackground(Display.getDefault().getSystemColor(SWT.COLOR_DARK_GRAY));
   
    if (parent.getLayout() == null) {
      NotificationControl notificationControl = new NotificationControl(parent, SWT.NONE);
View Full Code Here


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

TOP

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

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.