Package org.eclipse.ui.console

Examples of org.eclipse.ui.console.IConsoleView.display()


  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);
  }

  private static MessageConsole findConsole() {
View Full Code Here


        try {
          IWorkbenchPage page = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();
          String id = IConsoleConstants.ID_CONSOLE_VIEW;
          IConsoleView view;
          view = (IConsoleView) page.showView(id);
          view.display(console);
        } catch (PartInitException e) {
          // TODO Auto-generated catch block
          e.printStackTrace();
        }catch(NullPointerException e){
          e.printStackTrace();
View Full Code Here

        try {
          IWorkbenchPage page = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();
          String id = IConsoleConstants.ID_CONSOLE_VIEW;
          IConsoleView view;
          view = (IConsoleView) page.showView(id);
          view.display(console);
        } catch (PartInitException e) {
          // TODO Auto-generated catch block
          e.printStackTrace();
        }catch(NullPointerException e){
          e.printStackTrace();
View Full Code Here

        try {
          IWorkbenchPage page = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();
          String id = IConsoleConstants.ID_CONSOLE_VIEW;
          IConsoleView view;
          view = (IConsoleView) page.showView(id);
          view.display(console);
        } catch (PartInitException e) {
          // TODO Auto-generated catch block
          e.printStackTrace();
        }catch(NullPointerException e){
          e.printStackTrace();
View Full Code Here

          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);
        }
        return Status.OK_STATUS;
      }
View Full Code Here

                            IConsoleView consoleView = (IConsoleView) page.showView(IConsoleConstants.ID_CONSOLE_VIEW, null, IWorkbenchPage.VIEW_CREATE);
                            boolean bringToTop = shouldBringToTop(console, consoleView);
                            if (bringToTop) {
                                page.bringToTop(consoleView);
                            }
                            consoleView.display(console);       
                        } catch (PartInitException pie) {
                            ConsolePlugin.log(pie);
                        }
                    }
                }
View Full Code Here

    try {
      MessageConsole console = findConsole("Code Statistics: XML OUTPUT");
      String id = IConsoleConstants.ID_CONSOLE_VIEW;
      IWorkbenchPage page = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();
      IConsoleView view = (IConsoleView) page.showView(id);
      view.display(console);

      PrintWriter out = new PrintWriter(new BufferedOutputStream(console.newMessageStream()));
      for (ICompilationUnit icu : Utils.getSelectedIcu(selection)) {
        CompilationUnit cu = Utils.parse(icu);
        XmlVisitor visitor;
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.