Package com.iizigo.java
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
Method Summary
Modifier and TypeMethodDescriptionorg.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 Infoorg.eclipse.jface.text.IInformationControlCreator
Delegate method forJavaInformationProvider.getInformationPresenterControlCreator()
Methods inherited from class org.eclipse.jdt.internal.ui.text.java.hover.AbstractJavaEditorTextHover
getCodeAssist, getEditor, getEditorInputJavaElement, getHoverRegion, getJavaElementsAt, setEditor
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 interfaceorg.eclipse.jface.text.ITextHoverExtension2
- Overrides:
getHoverInfo2
in classorg.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 interfaceorg.eclipse.jface.text.ITextHoverExtension
- Overrides:
getHoverControlCreator
in classorg.eclipse.jdt.internal.ui.text.java.hover.AbstractJavaEditorTextHover
getInformationPresenterControlCreator
public org.eclipse.jface.text.IInformationControlCreator getInformationPresenterControlCreator()Delegate method forJavaInformationProvider.getInformationPresenterControlCreator()
- Overrides:
getInformationPresenterControlCreator
in classorg.eclipse.jdt.internal.ui.text.java.hover.AbstractJavaEditorTextHover
- Returns:
- The information control creator or null if none is available.