diff options
Diffstat (limited to 'org.eclipse.jface.text/src/org/eclipse/jface/text/source/IAnnotationHover.java')
-rw-r--r-- | org.eclipse.jface.text/src/org/eclipse/jface/text/source/IAnnotationHover.java | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/org.eclipse.jface.text/src/org/eclipse/jface/text/source/IAnnotationHover.java b/org.eclipse.jface.text/src/org/eclipse/jface/text/source/IAnnotationHover.java new file mode 100644 index 00000000000..53a9160e672 --- /dev/null +++ b/org.eclipse.jface.text/src/org/eclipse/jface/text/source/IAnnotationHover.java @@ -0,0 +1,27 @@ +package org.eclipse.jface.text.source; + +/* + * (c) Copyright IBM Corp. 2000, 2001. + * All Rights Reserved. + */ + + + +/** + * Provides the information to be displayed in a hover popup window + * which appears over the presentation area of annotations. Clients + * may implement this interface. + */ +public interface IAnnotationHover { + + /** + * Returns the text which should be presented in the a + * hover popup window. This information is requested based on + * the specified line number. + * + * @param sourceViewer the source viewer this hover is registered with + * @param lineNumber the line number for which information is requested + * @return the requested information or <code>null</code> if no such information exists + */ + String getHoverInfo(ISourceViewer sourceViewer, int lineNumber); +}
\ No newline at end of file |