Package org.eclipse.ui.console

Examples of org.eclipse.ui.console.IHyperlink


            }
            IFile file = null;
            if (res instanceof IFile) {
                file = (IFile) res;
            }
            final IHyperlink link = new FileLink(file, null, -1, -1,
                    Integer.parseInt(v[1]));
            fConsole.addHyperlink(link, event.getOffset(), event.getLength());
        } catch (final BadLocationException e) {
            ErlLogger.warn(e);
        }
View Full Code Here


  public void matchFound(PatternMatchEvent event) {
    try {
      int offset = event.getOffset();
      int length = event.getLength();
      IHyperlink link = new RutaFileHyperlink(console);
      console.addHyperlink(link, offset + 1, length - 2);
    } catch (BadLocationException e) {
    }
  }
View Full Code Here

      }

      if(active_prj_name == null)
        return;
     
      IHyperlink link = null;
      IProject p = root.getProject(active_prj_name);

      File f = new File(fn);
     
      if(f.exists())
View Full Code Here

          }

          if (files.size() != 0) {
            IFile file = (IFile) files.get(0);
            if (file != null && file.exists()) {
              IHyperlink link = new FileLink(file, null, -1, -1, lineNumber);
              console.addLink(link, linkOffset, linkLength);
            }
          }
        }
      }
View Full Code Here

  public void matchFound(PatternMatchEvent event) {
    try {
      int offset = event.getOffset();
      int length = event.getLength();
      IHyperlink link = new RutaFileHyperlink(console);
      console.addHyperlink(link, offset + 1, length - 2);
    } catch (BadLocationException e) {
    }
  }
View Full Code Here

    /*
     *  (non-Javadoc)
     * @see org.eclipse.jface.action.IAction#run()
     */
  public void run() {
    IHyperlink link = viewer.getHyperlink();
    if (link != null) {
      link.linkActivated();
    }
  }
View Full Code Here

            lineNumber = m.group(3);
            fileStart = m.start(1); // The beginning of the line, "File  "
        }
        // hyperlink if we found something
        if (fileName != null) {
            IHyperlink link = null;
            int num = -1;
            try {
                num = lineNumber != null ? Integer.parseInt(lineNumber) : 0;
            } catch (NumberFormatException e) {
                num = 0;
View Full Code Here

            }
            range.start = 0;
            range.length = firstSpace;
            if (this.data instanceof PyUnitTestResult) {
                final PyUnitTestResult pyUnitTestResult = (PyUnitTestResult) this.data;
                range.customData = new IHyperlink() {

                    public void linkExited() {
                    }

                    public void linkEntered() {
View Full Code Here

    fConsoleMonitor = consoleMonitor;
    fPHPHyperLink = link;
  }

  public void handleEvent(DebugError debugError) {
    IHyperlink link = createLink(debugError);
    String message = debugError.toString().trim();
    fPHPHyperLink.addLink(link, message, message.length()
        - debugError.getErrorTextLength());
    fConsoleMonitor.append(debugError.toString() + '\n');
  }
View Full Code Here

      return;
    }
    if (fPHPHyperLink != null) {
      HyperlinkEntry hyperLink = fPHPHyperLink.getHyperlinkEntry(message);
      if (hyperLink != null) {
        IHyperlink link = hyperLink.getLink();
        if (link != null) {
          fConsole.addLink(link, line.getOffset(),
              hyperLink.getHyperLength());
        }
      }
View Full Code Here

TOP

Related Classes of org.eclipse.ui.console.IHyperlink

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.