public class DefaultAnnotationHover extends Object implements IAnnotationHover
IAnnotationHover
.Constructor and Description |
---|
DefaultAnnotationHover() |
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 String getHoverInfo(ISourceViewer sourceViewer, int lineNumber)
IAnnotationHover
getHoverInfo
in interface IAnnotationHover
sourceViewer
- 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 formatGuidelines for using Eclipse APIs. Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.