org.eclipse.emf.codegen.jet.editor.dyncheck
Class JETAnnotationHover
java.lang.Object
org.eclipse.emf.codegen.jet.editor.dyncheck.JETAnnotationHover
- All Implemented Interfaces:
- org.eclipse.jface.text.source.IAnnotationHover
public class JETAnnotationHover
- extends java.lang.Object
- implements org.eclipse.jface.text.source.IAnnotationHover
- Version:
- $Revision: 1.2 $
Method Summary |
protected int |
compareRulerLine(org.eclipse.jface.text.Position position,
org.eclipse.jface.text.IDocument document,
int line)
Returns the distance to the ruler line. |
protected java.util.List |
getAnnotationsForLine(org.eclipse.jface.text.source.ISourceViewer viewer,
int line)
Returns one marker which includes the ruler's line of activity. |
java.lang.String |
getHoverInfo(org.eclipse.jface.text.source.ISourceViewer sourceViewer,
int lineNumber)
|
protected java.util.List |
select(java.util.List exactMatch,
java.util.List including)
Selects a set of markers from the two lists. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JETAnnotationHover
public JETAnnotationHover()
compareRulerLine
protected int compareRulerLine(org.eclipse.jface.text.Position position,
org.eclipse.jface.text.IDocument document,
int line)
- Returns the distance to the ruler line.
- Parameters:
position
- Positiondocument
- IDocumentline
- int
- Returns:
- int
select
protected java.util.List select(java.util.List exactMatch,
java.util.List including)
- Selects a set of markers from the two lists. By default, it just returns the set of exact
matches.
- Parameters:
exactMatch
- Listincluding
- List
- Returns:
- List
getAnnotationsForLine
protected java.util.List getAnnotationsForLine(org.eclipse.jface.text.source.ISourceViewer viewer,
int line)
- Returns one marker which includes the ruler's line of activity.
- Parameters:
viewer
- ISourceViewerline
- int
- Returns:
- List
getHoverInfo
public java.lang.String getHoverInfo(org.eclipse.jface.text.source.ISourceViewer sourceViewer,
int lineNumber)
- Specified by:
getHoverInfo
in interface org.eclipse.jface.text.source.IAnnotationHover