Examples of showView()


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

  protected void openRelatedView() {
    IWorkbenchPage page = getEditorSite().getPage();
    if (page != null) {
      for (String viewId : RELATED_VIEW_IDS) {
        try {
          page.showView(viewId);
        } catch (Exception e) {
          VisualSwingPlugin.getLogger().error(e);
        }
      }
    }
View Full Code Here

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

  static ConsolePrinter createAndDisplayConsole() throws PartInitException {
    MessageConsole console = findConsole();
    IWorkbenchPage page = activeWorkbenchPage();
    if (page != null) {
      IConsoleView view = (IConsoleView) page.showView(ID_CONSOLE_VIEW);
      view.display(console);
    }
    return new ConsolePrinter(console);
  }
View Full Code Here

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

public class ShowRenderLineHandler extends AbstractHandler implements IHandler {

  public Object execute(ExecutionEvent event) throws ExecutionException {
    IWorkbenchPage page = HandlerUtil.getActiveWorkbenchWindow(event).getActivePage();
    try {
      page.showView(RenderLineView.ID);
    } catch (PartInitException e) {
      e.printStackTrace();
    }
    return null;
  }
View Full Code Here

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

         
          // hook the listener
          model.addPropertyChangeListener(editor);
         
          // shows properties
          page.showView(IPageLayout.ID_PROP_SHEET);
         
        } catch (PartInitException e) {
          Debugger.getInstance().addMessage(e.getStackTrace());
        }
      }
View Full Code Here

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

public class ShowShapesHandler extends AbstractHandler implements IHandler {

  public Object execute(ExecutionEvent event) throws ExecutionException {
    IWorkbenchPage page = HandlerUtil.getActiveWorkbenchWindow(event).getActivePage();
    try {
      page.showView(ShapeView.ID);
    } catch (PartInitException e) {
      e.printStackTrace();
    }
    return null;
  }
View Full Code Here

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

         
          // hook event listener on editor
          model.addPropertyChangeListener(editor);
         
          // open properties
          page.showView(IPageLayout.ID_PROP_SHEET);
        } catch (PartInitException e) {
          Debugger.getInstance().addMessage(e.getStackTrace());
        }
      }
    }
View Full Code Here

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

public class ShowRulesHandler extends AbstractHandler implements IHandler {

  public Object execute(ExecutionEvent event) throws ExecutionException {
    IWorkbenchPage page = HandlerUtil.getActiveWorkbenchWindow(event).getActivePage();
    try {
      page.showView(RuleView.ID);
    } catch (PartInitException e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
    }
    return null;
View Full Code Here

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

public class ShowDebugTreeHandler extends AbstractHandler implements IHandler {

  public Object execute(ExecutionEvent event) throws ExecutionException {
    IWorkbenchPage page = HandlerUtil.getActiveWorkbenchWindow(event).getActivePage();
    try {
      page.showView(DebugTree.ID);
    } catch (PartInitException e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
    }
    return null;
View Full Code Here

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

                    IWorkbenchPage activePage =
                            PlatformUI.getWorkbench().
                            getActiveWorkbenchWindow().
                            getActivePage();
                    IWorkbenchPart activePart = activePage.getActivePart();
                    activePage.
                            showView("com.volantis.mcs.eclipse.ab.views.layout.FormatAttributesView");
                    activePage.activate(activePart);
                } catch (PartInitException e) {
                    EclipseCommonPlugin.handleError(ABPlugin.getDefault(), e);
                }
View Full Code Here

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

        try {
            IWorkbenchPage activePage =
                PlatformUI.getWorkbench().
                getActiveWorkbenchWindow().
                getActivePage();
            activePage.showView(
                        "com.volantis.mcs.eclipse.ab.views" +
                        ".layout.FormatAttributesView").setFocus();
        } catch (PartInitException e) {
            EclipseCommonPlugin.handleError(ABPlugin.getDefault(), 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.