org.eclipse.mtl.ide.ui.editors.template
Class MTLHover

java.lang.Object
  extended by org.eclipse.mtl.ide.ui.editors.template.MTLHover
All Implemented Interfaces:
org.eclipse.jface.text.source.IAnnotationHover

public class MTLHover
extends java.lang.Object
implements org.eclipse.jface.text.source.IAnnotationHover

Text hover for an annotation in the template editor.


Field Summary
protected  MTLEditor editor
          The template editor.
 
Constructor Summary
MTLHover(MTLEditor editor)
          Constructor.
 
Method Summary
 java.lang.String getHoverInfo(org.eclipse.jface.text.source.ISourceViewer sourceViewer, int lineNumber)
          
protected  java.lang.String getHoverText(org.eclipse.jface.text.source.IAnnotationModel model, org.eclipse.jface.text.IDocument document, int lineNumber)
          Hover text for an annotation at the given line.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

editor

protected MTLEditor editor
The template editor.

Constructor Detail

MTLHover

public MTLHover(MTLEditor editor)
Constructor.

Parameters:
editor - is the editor
Method Detail

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
See Also:
IAnnotationHover.getHoverInfo(org.eclipse.jface.text.source.ISourceViewer, int)

getHoverText

protected java.lang.String getHoverText(org.eclipse.jface.text.source.IAnnotationModel model,
                                        org.eclipse.jface.text.IDocument document,
                                        int lineNumber)
Hover text for an annotation at the given line.

Parameters:
model - is the annotation model
document - is the current document
lineNumber - is the line number
Returns:
hover text of the annotation

Copyright 2008 Obeo
All Rights Reserved.