Examples of IAnnotationHoverExtension


Examples of org.eclipse.jface.text.source.IAnnotationHoverExtension

      try {

        // compute the hover information
        Object hoverInfo;
        if (annotationHover instanceof IAnnotationHoverExtension) {
          IAnnotationHoverExtension extension= (IAnnotationHoverExtension) annotationHover;
          ILineRange hoverLineRange= extension.getHoverLineRange(sourceViewer, line);
          if (hoverLineRange == null)
            return false;
          final int maxVisibleLines= Integer.MAX_VALUE; // allow any number of lines being displayed, as we support scrolling
          hoverInfo= extension.getHoverInfo(sourceViewer, hoverLineRange, maxVisibleLines);
        } else {
          hoverInfo= annotationHover.getHoverInfo(sourceViewer, line);
        }
       
        // hover region: the beginning of the concerned line to place the control right over the line
View Full Code Here

Examples of org.eclipse.jface.text.source.IAnnotationHoverExtension

   
    try {
      // compute the hover information
      Object hoverInfo;
      if (annotationHover instanceof IAnnotationHoverExtension) {
        IAnnotationHoverExtension extension= (IAnnotationHoverExtension) annotationHover;
        ILineRange hoverLineRange= extension.getHoverLineRange(fSourceViewer, line);
        if (hoverLineRange == null)
          return false;
        final int maxVisibleLines= Integer.MAX_VALUE; // allow any number of lines being displayed, as we support scrolling
        hoverInfo= extension.getHoverInfo(fSourceViewer, hoverLineRange, maxVisibleLines);
      } else {
        hoverInfo= annotationHover.getHoverInfo(fSourceViewer, line);
      }

      // hover region: the beginning of the concerned line to place the control right over the line
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.