|
Eclipse Platform Release 3.2 |
|||||||||||
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()
|
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()
Method 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.2 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.