Examples of IConsole


Examples of com.subgraph.vega.api.console.IConsole

  private ConsoleNotifyLevel notifyLevel = ConsoleNotifyLevel.NOTIFY_OFF;

  public void createPartControl(Composite parent) {
    super.createPartControl(parent);
    final IConsole console = Activator.getDefault().getConsole();
    if(console != null) {
      console.addConsoleOutputListener(this);
    }
    partListener = createPartListener();
    getSite().getPage().addPartListener(partListener);
  }
View Full Code Here

Examples of com.subgraph.vega.api.console.IConsole

    };
  }

  @Override
  public void dispose() {
    final IConsole console = Activator.getDefault().getConsole();
    if(console != null) {
      console.removeConsoleOutputListener(this);
    }
    getSite().getPage().removePartListener(partListener);
    imageCache.dispose();
    super.dispose();
  }
View Full Code Here

Examples of com.subgraph.vega.api.console.IConsole

    }
  }
  private void setupLogging() {
    Logger rootLogger = Logger.getLogger("");

    IConsole console = Activator.getDefault().getConsole();
    if(console != null) {
      Handler handler = new LogHandler(console);
      handler.setFormatter(new LogFormatter());
      handler.setLevel(Level.FINEST);
      for(Handler h: rootLogger.getHandlers())
View Full Code Here

Examples of net.sourceforge.marathon.api.IConsole

        }
        return instance;
    }

    private static JavaRuntime createAJavaRuntime() {
        return new JavaRuntime(new IConsole() {
            public void writeScriptOut(char[] cbuf, int off, int len) {
                try {
                    System.out.write(new String(cbuf, off, len).getBytes());
                } catch (IOException e) {
                    e.printStackTrace();
View Full Code Here

Examples of org.eclipse.debug.ui.console.IConsole

  public void disconnect() {
  }

  public void matchFound(PatternMatchEvent event) {
    if (event.getSource() instanceof IConsole) {
      IConsole console = (IConsole)event.getSource();
      if (TomcatUtils.getInstance().isTomcatProcess(console.getProcess())) {
        try {
          // parse TML Warning
          IDocument document = console.getDocument();
          String content = document.get(event.getOffset(), event.getLength());
          TMLWarning warning = TMLWarning.parse(content);
         
          // compute link offset & length
          int linkOffset = event.getOffset();
          int linkLength = event.getLength();
          int linkStart = content.indexOf(" - ");
          if (linkStart != -1) {
            linkStart += " - ".length();
            int linkEnd = content.indexOf(" - ", linkStart);
            if (linkEnd != -1) {
              linkOffset += linkStart;
              linkLength = linkEnd - linkStart;
            }
          }
         
          // add hyperlink
          console.addLink(new TMLWarningHyperLink(warning), linkOffset, linkLength);
        } catch (Exception e) {
          WGADesignerPlugin.getDefault().logError(e.getMessage(), e);
       
      }
    }
View Full Code Here

Examples of org.eclipse.debug.ui.console.IConsole

        List<IConsoleLineTracker> lineTrackers = new ArrayList<IConsoleLineTracker>();
        PythonConsoleLineTracker lineTracker = new PythonConsoleLineTracker();

        //The IConsole we implement in this class is not the same IConsole that's needed in the
        //lineTracker, so, let's create a wrapper for this with the interfaces requested.
        lineTracker.init(new IConsole() {

            //IMPLEMENTATIONS FORWARDED TO OUTER CLASS
            public void addLink(IConsoleHyperlink link, int offset, int length) {
                PydevConsole.this.addLink(link, offset, length);
            }
View Full Code Here

Examples of org.eclipse.ui.console.IConsole

    }

    @Override
    public void runtimeRemoved(final IBackend b) {
        ErlLogger.debug("console REMOVED from " + b.getName());
        final IConsole console = consoles.get(b);
        if (console == null) {
            return;
        }
        conMan.removeConsoles(new IConsole[] { console });
    }
View Full Code Here

Examples of org.eclipse.ui.console.IConsole

        if (fConsoleView == null) {
            return fLaunch;
        }
        // else get dynamically, as this action was created via plug-in XML view
        // contribution
        final IConsole console = fConsoleView.getConsole();
        if (console instanceof ErlangConsole) {
            final ErlangConsole pconsole = (ErlangConsole) console;
            final IBackend backend = pconsole.getBackend();
            return backend.getData().getLaunch();
        }
View Full Code Here

Examples of org.eclipse.ui.console.IConsole

     * <code>dispose()</code>.
     */
    public class MyLifecycle implements org.eclipse.ui.console.IConsoleListener {
        public void consolesAdded(IConsole[] consoles) {
            for (int i = 0; i < consoles.length; i++) {
                IConsole console = consoles[i];
                if (console == IvyConsole.this) {
                    init();
                }
            }

View Full Code Here

Examples of org.eclipse.ui.console.IConsole

        }

        public void consolesRemoved(IConsole[] consoles) {
            for (int i = 0; i < consoles.length; i++) {
                IConsole console = consoles[i];
                if (console == IvyConsole.this) {
                    ConsolePlugin.getDefault().getConsoleManager().removeConsoleListener(this);
                    dispose();
                }
            }
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.