Package org.eclipse.debug.ui.console

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


        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

TOP

Related Classes of org.eclipse.debug.ui.console.IConsole

Copyright © 2018 www.massapicom. 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.