Examples of IAnnotationHover


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

            {
                try
                {
                    // If no keyword description was found,
                    // try to show marker info
                    IAnnotationHover markerAnnotation =
                        new PerlAnnotationHover(fTextEditor);
                    int line =
                        textViewer.getDocument().getLineOfOffset(hoverRegion.getOffset());
                    return
                        markerAnnotation.getHoverInfo((ISourceViewer) textViewer, line);
                }
                catch (BadLocationException e)
                {
                    // should never occur
                    return null;
View Full Code Here

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

          return;
      }

      if (sourceViewer instanceof ISourceViewerExtension3) {
        // does an annotation hover exist?
        IAnnotationHover annotationHover= ((ISourceViewerExtension3) sourceViewer).getCurrentAnnotationHover();
        if (annotationHover != null && makeAnnotationHoverFocusable(sourceViewer, annotationHover))
          return;
      }
     
      // otherwise, just run the action
View Full Code Here

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

        // of all the problem markers for the specified line number.
        // Note that the lineNumber given to getHoverInfo() is 1 less than
        // the line known to the marker or shown in the line number rule in
        // the editor. Presumably this is because whomever calls
        // getHoverInfo() thinks that line numbers start from 0.
        IAnnotationHover annotationHover = new IAnnotationHover() {
            public String getHoverInfo(ISourceViewer iSourceViewer,
                                       int lineNumber) {
                String hoverInfo = null;

                try {
View Full Code Here

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

          return;
      }

      if (sourceViewer instanceof ISourceViewerExtension3) {
        // does an annotation hover exist?
        IAnnotationHover annotationHover= ((ISourceViewerExtension3) sourceViewer).getCurrentAnnotationHover();
        if (annotationHover != null && makeAnnotationHoverFocusable(annotationHover))
          return;
      }

      // otherwise, just run the action
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.