org.eclipse.emf.codegen.jet.editor.dyncheck
Class JETAnnotationHover

java.lang.Object
  extended by 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 $

Constructor Summary
JETAnnotationHover()
           
 
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
 

Constructor Detail

JETAnnotationHover

public JETAnnotationHover()
Method Detail

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 - Position
document - IDocument
line - 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 - List
including - 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 - ISourceViewer
line - 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

Copyright 2006 IBM Corporation and others.
All Rights Reserved.