public class DefaultAnnotationHover extends java.lang.Object implements IAnnotationHover
IAnnotationHover.| Constructor and Description |
|---|
DefaultAnnotationHover()
Creates a new default annotation hover.
|
DefaultAnnotationHover(boolean showLineNumber)
Creates a new default annotation hover.
|
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
formatMultipleMessages(java.util.List<java.lang.String> messages)
Hook method to formats the given messages.
|
protected java.lang.String |
formatSingleMessage(java.lang.String message)
Hook method to format the given single message.
|
java.lang.String |
getHoverInfo(ISourceViewer sourceViewer,
int lineNumber)
Returns the text which should be presented in the a
hover popup window.
|
protected boolean |
isIncluded(Annotation annotation)
Tells whether the annotation should be included in
the computation.
|
public DefaultAnnotationHover()
public DefaultAnnotationHover(boolean showLineNumber)
showLineNumber - true if the line number should be shown when no annotation is foundpublic java.lang.String getHoverInfo(ISourceViewer sourceViewer, int lineNumber)
IAnnotationHovergetHoverInfo in interface IAnnotationHoversourceViewer - the source viewer this hover is registered withlineNumber - the line number for which information is requestednull if no such information existsprotected boolean isIncluded(Annotation annotation)
annotation - the annotation to testtrue if the annotation is included in the computationprotected java.lang.String formatSingleMessage(java.lang.String message)
Subclasses can change this to create a different format like HTML.
message - the message to formatprotected java.lang.String formatMultipleMessages(java.util.List<java.lang.String> messages)
Subclasses can change this to create a different format like HTML.
messages - the messages to format
Copyright (c) 2000, 2018 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.