Class JavaEditorTextHover

  • All Implemented Interfaces:
    org.eclipse.jdt.ui.text.java.hover.IJavaEditorTextHover, org.eclipse.jface.text.ITextHover, org.eclipse.jface.text.ITextHoverExtension, org.eclipse.jface.text.ITextHoverExtension2

    public class JavaEditorTextHover
    extends org.eclipse.jdt.internal.ui.text.java.hover.AbstractJavaEditorTextHover
    Processing of text hovers in the Java Editor.

    Hovers on StringLiterals that are somehow linked to DesignerProp's are shown when no other Java hovers are present.

    Author:
    Christopher Mindus
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethodDescription
      org.eclipse.jface.text.IInformationControlCreatorgetHoverControlCreator() 
      java.lang.StringgetHoverInfo​(org.eclipse.jface.text.ITextViewer textViewer, org.eclipse.jface.text.IRegion hoverRegion)
      Old hover info.
      java.lang.ObjectgetHoverInfo2​(org.eclipse.jface.text.ITextViewer textViewer, org.eclipse.jface.text.IRegion hoverRegion)
      Gets the Hover Info
      org.eclipse.jface.text.IInformationControlCreatorgetInformationPresenterControlCreator()
      Delegate method for JavaInformationProvider.getInformationPresenterControlCreator()
      • Methods inherited from class org.eclipse.jdt.internal.ui.text.java.hover.AbstractJavaEditorTextHover

        getCodeAssist, getEditor, getEditorInputJavaElement, getHoverRegion, getJavaElementsAt, setEditor
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • JavaEditorTextHover

        public JavaEditorTextHover()
    • Method Detail

      • getHoverInfo2

        public java.lang.Object getHoverInfo2​(org.eclipse.jface.text.ITextViewer textViewer,
                                              org.eclipse.jface.text.IRegion hoverRegion)
        Gets the Hover Info
        Specified by:
        getHoverInfo2 in interface org.eclipse.jface.text.ITextHoverExtension2
        Overrides:
        getHoverInfo2 in class org.eclipse.jdt.internal.ui.text.java.hover.AbstractJavaEditorTextHover
      • getHoverInfo

        public java.lang.String getHoverInfo​(org.eclipse.jface.text.ITextViewer textViewer,
                                             org.eclipse.jface.text.IRegion hoverRegion)
        Old hover info.
      • getHoverControlCreator

        public org.eclipse.jface.text.IInformationControlCreator getHoverControlCreator()
        Specified by:
        getHoverControlCreator in interface org.eclipse.jface.text.ITextHoverExtension
        Overrides:
        getHoverControlCreator in class org.eclipse.jdt.internal.ui.text.java.hover.AbstractJavaEditorTextHover
      • getInformationPresenterControlCreator

        public org.eclipse.jface.text.IInformationControlCreator getInformationPresenterControlCreator()
        Delegate method for JavaInformationProvider.getInformationPresenterControlCreator()
        Overrides:
        getInformationPresenterControlCreator in class org.eclipse.jdt.internal.ui.text.java.hover.AbstractJavaEditorTextHover
        Returns:
        The information control creator or null if none is available.