Examples of bringToTop()


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

                && (editorId == null || fEditor.getSite().getId().equals(editorId));

        if (canBeReused) {
            if (showsSameInputType) {
                fEditor.setInput(new FileEditorInput(file));
                page.bringToTop(fEditor);
                return (ITextEditor) fEditor;
            }
            page.closeEditor(fEditor, false);
            fEditor = null;
        }
View Full Code Here

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

                .getDocument(part.getEditorInput());
          }
        }
        IWorkbenchPage page = DLTKUIPlugin.getActivePage();
        if (page != null && part != null) {
          page.bringToTop(part);
        }
        if (part != null) {
          part.setFocus();
        }
      }
View Full Code Here

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

      /* Find the Editor showing given Selection */
      IWorkbenchPage activePage = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();
      IEditorReference[] editorReferences = activePage.getEditorReferences();
      IEditorReference reference = EditorUtils.findEditor(editorReferences, element);
      if (reference != null)
        activePage.bringToTop(reference.getPart(true));
    }
  }

  private void editorActivated(IEditorPart part) {
    if (!fLinkingEnabled || part == null)
View Full Code Here

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

        view.setInputFromXml(id, name, xml, basePath);
      } else {
        view.setInput(id);
      }
      IWorkbenchPage page = view.getSite().getWorkbenchWindow().getActivePage();
      page.bringToTop(view);
    }
  }
}
View Full Code Here

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

    IWorkbenchPage page = window.getActivePage();
    if (page != null) {
      try {
        IViewPart view = page.showView(CoverageView.ID, null,
            IWorkbenchPage.VIEW_CREATE);
        page.bringToTop(view);
      } catch (PartInitException e) {
        log(e);
      }
    }
  }
View Full Code Here

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

  public static IViewPart showView(String viewId, boolean bringToTop) {
    IWorkbenchPage activePage = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();
    try {
      IViewPart view = activePage.showView(viewId);
      if (view != null && bringToTop) {
        activePage.bringToTop(view);
      }
      return view;
    } catch (PartInitException e) {
    }
    return null;
View Full Code Here

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

          //restore focus
          page.activate(activePart);
        }
        else {
          page.bringToTop(testRunner);
        }
      }
      catch(PartInitException pie) {
        TestNGPlugin.log(pie);
      }
View Full Code Here

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

      }
    }
    // if there exists the view, but if not on the top,
    // then brings it to top when the view is already showed.
    else if (!page.isPartVisible(viewPart)) {
      page.bringToTop(viewPart);
    }
    if (!(viewPart instanceof ReviewTableView)) {
      throw new IllegalStateException("viewPart is not instance of ReviewTableView");
    }
    else {
View Full Code Here

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

      }
    }
    // if there exists the view, but if not on the top,
    // then brings it to top when the view is already showed.
    else if (!page.isPartVisible(viewPart)) {
      page.bringToTop(viewPart);
    }
    if (viewPart instanceof ReviewEditorView) {
      return (ReviewEditorView) viewPart;
    }
    else {
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.