Examples of openWorkbenchWindow()


Examples of org.eclipse.ui.IWorkbench.openWorkbenchWindow()

        if (IPreferenceConstants.OPM_NEW_WINDOW == mode && persp != null) {
            try {
                IWorkbench workbench = getWindow().getWorkbench();
                IAdaptable input = ((Workbench) workbench)
                        .getDefaultPageInput();
                workbench.openWorkbenchWindow(desc.getId(), input);
            } catch (WorkbenchException e) {
                handleWorkbenchException(e);
            }
        } else {
            if (page != null) {
View Full Code Here

Examples of org.eclipse.ui.IWorkbench.openWorkbenchWindow()

          window.getShell().setActive();
          opened = true;
        }
        else if (Activator.getDefault().getPreferenceStore().getBoolean(PreferenceConstants.OPEN_IN_WINDOW_KEY)) {
          try {
            IWorkbenchWindow window = workbench.openWorkbenchWindow(EOModelerPerspectiveFactory.EOMODELER_PERSPECTIVE_ID, null);
            window.getActivePage().openEditor(new FileEditorInput(editorFile), EOModelEditor.EOMODEL_EDITOR_ID);
            // MS: This is super hacky, but having a console open in the entity modeler perspective is fucking annoying.
            // So we're just going to forcefully close the thing.
            window.getPartService().addPartListener(new IPartListener() {
              public void partOpened(final IWorkbenchPart part) {
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.