|
Eclipse Platform Release 3.4 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jface.text.source.DefaultAnnotationHover
Standard implementation of IAnnotationHover
.
Constructor Summary | |
DefaultAnnotationHover()
Creates a new default annotation hover. |
|
DefaultAnnotationHover(boolean showLineNumber)
Creates a new default annotation hover. |
Method Summary | |
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DefaultAnnotationHover()
public DefaultAnnotationHover(boolean showLineNumber)
showLineNumber
- true
if the line number should be shown when no annotation is foundMethod Detail |
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 requested
null
if no such information existsprotected boolean isIncluded(Annotation annotation)
annotation
- the annotation to test
true
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
protected String formatMultipleMessages(List messages)
Subclasses can change this to create a different format like HTML.
messages
- the messages to format
|
Eclipse Platform Release 3.4 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.