Class JavaEditorTextHover

java.lang.Object
org.eclipse.jdt.internal.ui.text.java.hover.AbstractJavaEditorTextHover
com.iizigo.java.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
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.eclipse.jface.text.IInformationControlCreator
     
    getHoverInfo(org.eclipse.jface.text.ITextViewer textViewer, org.eclipse.jface.text.IRegion hoverRegion)
    Old hover info.
    getHoverInfo2(org.eclipse.jface.text.ITextViewer textViewer, org.eclipse.jface.text.IRegion hoverRegion)
    Gets the Hover Info
    org.eclipse.jface.text.IInformationControlCreator
    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 Details

    • JavaEditorTextHover

      public JavaEditorTextHover()
  • Method Details

    • getHoverInfo2

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