Package org.eclipse.ui

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


   
    IWorkbenchPage page = WorkbenchUtils.getActivePage();
    IEditorPart editor = IDE.openEditor(page, file, EditorSettings_Actual.EDITOR_ID);
    assertTrue(editor instanceof DeeEditor);
   
    page.showView("org.eclipse.ui.views.ContentOutline");
    page.showView(ASTViewer.VIEW_ID);
  }
 
  @Test
  public void testDeeEditor2() throws CoreException {
View Full Code Here


    IWorkbenchPage page = WorkbenchUtils.getActivePage();
    IEditorPart editor = IDE.openEditor(page, file, EditorSettings_Actual.EDITOR_ID);
    assertTrue(editor instanceof DeeEditor);
   
    page.showView("org.eclipse.ui.views.ContentOutline");
    page.showView(ASTViewer.VIEW_ID);
  }
 
  @Test
  public void testDeeEditor2() throws CoreException {
    IFile file = SampleMainProject.sampleOutOfModelFile;
View Full Code Here

   
    IWorkbenchPage page = WorkbenchUtils.getActivePage();
    IEditorPart editor = IDE.openEditor(page, file, EditorSettings_Actual.EDITOR_ID);
    assertTrue(editor instanceof DeeEditor);
   
    page.showView("org.eclipse.ui.views.ContentOutline");
    page.showView(ASTViewer.VIEW_ID);
  }
 
  @Test
  public void testDeeEditor3() throws CoreException {
View Full Code Here

    IWorkbenchPage page = WorkbenchUtils.getActivePage();
    IEditorPart editor = IDE.openEditor(page, file, EditorSettings_Actual.EDITOR_ID);
    assertTrue(editor instanceof DeeEditor);
   
    page.showView("org.eclipse.ui.views.ContentOutline");
    page.showView(ASTViewer.VIEW_ID);
  }
 
  @Test
  public void testDeeEditor3() throws CoreException {
    IWorkbenchPage page = WorkbenchUtils.getActivePage();
View Full Code Here

     * @return instance of annotations view or null if view couldn't be opened
     */
    static IViewPart showUserAnnotationView() {
        IWorkbenchPage page = FindbugsPlugin.getActiveWorkbenchWindow().getActivePage();
        try {
            return page.showView(FindbugsPlugin.USER_ANNOTATIONS_VIEW_ID);
        } catch (PartInitException e) {
            FindbugsPlugin.getDefault().logException(e, "Could not show bug annotations view");
        }
        return null;
    }
View Full Code Here

     * @return instance of annotations view or null if view couldn't be opened
     */
    static IViewPart showDetailsView() {
        IWorkbenchPage page = FindbugsPlugin.getActiveWorkbenchWindow().getActivePage();
        try {
            return page.showView(FindbugsPlugin.DETAILS_VIEW_ID);
        } catch (PartInitException e) {
            FindbugsPlugin.getDefault().logException(e, "Could not show bug details view");
        }
        return null;
    }
View Full Code Here

     * @return instance of annotations view or null if view couldn't be opened
     */
    static IViewPart showBugTreeView() {
        IWorkbenchPage page = FindbugsPlugin.getActiveWorkbenchWindow().getActivePage();
        try {
            return page.showView(FindbugsPlugin.TREE_VIEW_ID);
        } catch (PartInitException e) {
            FindbugsPlugin.getDefault().logException(e, "Could not show bug tree view");
        }
        return null;
    }
View Full Code Here

    public static void showMarker(IMarker marker, String viewId, IWorkbenchPart source) {
        IWorkbenchPage page = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();
        IViewPart view = page.findView(viewId);
        if (!page.isPartVisible(view)) {
            try {
                view = page.showView(viewId);
            } catch (PartInitException e) {
                FindbugsPlugin.getDefault().logException(e, "Could not open view: " + viewId);
                return;
            }
        }
View Full Code Here

  public void execute() {
    IWorkbenchPage activePage = PlatformUI.getWorkbench()
        .getActiveWorkbenchWindow().getActivePage();
    if (activePage != null) {
      try {
        activePage.showView(viewDescriptor.getId());
      } catch (PartInitException e) {
      }
    }
  }
View Full Code Here

            .getActiveWorkbenchWindow();
        if (window == null)
          return Status.OK_STATUS; // Eclipse exiting
        IWorkbenchPage page = window.getActivePage();
        try {
          IConsoleView view = (IConsoleView) page.showView(ID, null,
              IWorkbenchPage.VIEW_VISIBLE);
          view.display(console);
        } catch (PartInitException e) {
          Environment.logException("Could not activate the console", e);
        }
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.