public class DefaultAnnotationHover extends 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 String |
formatMultipleMessages(List messages)
Hook method to formats the given messages.
|
protected String |
formatSingleMessage(String message)
Hook method to format the given single message.
|
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 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 String formatSingleMessage(String message)
Subclasses can change this to create a different format like HTML.
message - the message to format
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.