Examples of IHyperlink


Examples of org.eclipse.jface.text.hyperlink.IHyperlink

    if (getAttribute() != null && getCompletionRegion() != null) {
      int start = input.getStartStructuredDocumentRegion().getStart() + getCompletionRegion().getStart();
      region = new Region(start, getCompletionRegion().getLength());
    }

    IHyperlink hyperlink = createHyperlink(value, region);
    if (hyperlink != null) {
      hyperlink.open();
      return true;
    }
    return false;
  }
View Full Code Here

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

Examples of org.eclipse.ui.console.IHyperlink

  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

Examples of org.eclipse.ui.console.IHyperlink

      }

      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

Examples of org.eclipse.ui.console.IHyperlink

          }

          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

Examples of org.eclipse.ui.console.IHyperlink

  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

Examples of org.eclipse.ui.console.IHyperlink

    /*
     *  (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

Examples of org.eclipse.ui.console.IHyperlink

            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

Examples of org.eclipse.ui.console.IHyperlink

            }
            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

Examples of org.eclipse.ui.console.IHyperlink

    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
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.