Examples of ITextHover


Examples of org.eclipse.jface.text.ITextHover

    // either had no best match hover or best match hover returned null
    if (displayText == null) {
      // go through list of text hovers and return first display string
      Iterator i = getTextHovers().iterator();
      while ((i.hasNext()) && (displayText == null)) {
        ITextHover hover = (ITextHover) i.next();
        displayText = hover.getHoverInfo(viewer, hoverRegion);
      }
    }
    return displayText;
  }
View Full Code Here

Examples of org.eclipse.jface.text.ITextHover

   */
  public IRegion getHoverRegion(ITextViewer viewer, int offset) {
    IRegion hoverRegion = null;

    // go through list of text hovers and return first hover region
    ITextHover hover = null;
    Iterator i = getTextHovers().iterator();
    while ((i.hasNext()) && (hoverRegion == null)) {
      hover = (ITextHover) i.next();
      hoverRegion = hover.getHoverRegion(viewer, offset);
    }

    // store the text hover processor that found region
    if (hoverRegion != null)
      fBestMatchHover = hover;
View Full Code Here

Examples of org.eclipse.jface.text.ITextHover

          return;
      }

      if (sourceViewer instanceof ITextViewerExtension2) {
        // does a text hover exist?
        ITextHover textHover= ((ITextViewerExtension2) sourceViewer).getCurrentTextHover();
        if (textHover != null && makeTextHoverFocusable(sourceViewer, textHover))
          return;
      }

      if (sourceViewer instanceof ISourceViewerExtension3) {
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.