Package org.eclipse.ui

Examples of org.eclipse.ui.IWorkbenchPage.findView()


    IWorkbench workbench = PlatformUI.getWorkbench();
    IWorkbenchWindow window = workbench.getWorkbenchWindows()[0];
    if (window != null) {
      final IWorkbenchPage page = window.getActivePage();
      if (page != null) {
        final IViewPart viewPart = page.findView(EDITOR_VIEW_ID);
        if (viewPart != null) {
          Display.getDefault().asyncExec(new Runnable() {
            public void run() {
              page.hideView(viewPart);
            }
View Full Code Here


    workbench.getDisplay().asyncExec(new Runnable() {
      public void run() {
        IWorkbenchWindow window = workbench.getActiveWorkbenchWindow();
        if (window != null) {
          IWorkbenchPage page = window.getActivePage();
          IViewPart viewPart = page.findView(EDITOR_VIEW_ID);
          if (viewPart != null && viewPart instanceof ReviewEditorView) {
            ((ReviewEditorView) viewPart).setEnable(isEnable);
          }
        }
      }
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.