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

java.lang.Object
  extended by org.eclipse.jface.text.source.AnnotationModel
      extended by org.eclipse.ui.texteditor.AbstractMarkerAnnotationModel
          extended by org.eclipse.ui.texteditor.ResourceMarkerAnnotationModel
              extended by org.eclipse.emf.codegen.jet.editor.dyncheck.JETAnnotationModel
All Implemented Interfaces:
org.eclipse.core.filebuffers.IPersistableAnnotationModel, org.eclipse.jface.text.ISynchronizable, org.eclipse.jface.text.source.IAnnotationModel, org.eclipse.jface.text.source.IAnnotationModelExtension

public class JETAnnotationModel
extends org.eclipse.ui.texteditor.ResourceMarkerAnnotationModel

A ResourceMarkerAnnotationModel where we can turn on/off the notifications of changes.

Version:
$Revision: 1.3 $

Field Summary
 
Fields inherited from class org.eclipse.jface.text.source.AnnotationModel
fAnnotationModelListeners, fAnnotations, fDocument
 
Constructor Summary
JETAnnotationModel(org.eclipse.core.resources.IResource resource)
           
 
Method Summary
 void addAnnotation(org.eclipse.jface.text.source.Annotation annotation, org.eclipse.jface.text.Position position)
           
protected  org.eclipse.ui.texteditor.MarkerAnnotation createMarkerAnnotation(org.eclipse.core.resources.IMarker marker)
          Method createMarkerAnnotation.
 void fireAnnotationModelChanged()
           
 boolean isFireChanges()
           
 void removeAllAnnotations()
           
 void removeAnnotation(org.eclipse.jface.text.source.Annotation annotation)
           
 void setFireChanges(boolean b)
           
 
Methods inherited from class org.eclipse.ui.texteditor.ResourceMarkerAnnotationModel
deleteMarkers, getResource, isAcceptable, listenToMarkerChanges, retrieveMarkers, update
 
Methods inherited from class org.eclipse.ui.texteditor.AbstractMarkerAnnotationModel
addMarkerAnnotation, addMarkerUpdater, commit, connected, createPositionFromMarker, disconnected, getMarkerAnnotation, getMarkerPosition, handleCoreException, modifyMarkerAnnotation, reinitialize, removeAnnotations, removeMarkerAnnotation, removeMarkerUpdater, resetMarkers, revert, updateMarker, updateMarker, updateMarkers
 
Methods inherited from class org.eclipse.jface.text.source.AnnotationModel
addAnnotation, addAnnotationModel, addAnnotationModelListener, addPosition, cleanup, connect, createAnnotationModelEvent, disconnect, fireModelChanged, fireModelChanged, getAnnotationIterator, getAnnotationIterator, getAnnotationMap, getAnnotationModel, getAnnotationModelEvent, getLockObject, getModificationStamp, getPosition, modifyAnnotation, modifyAnnotationPosition, modifyAnnotationPosition, removeAllAnnotations, removeAnnotation, removeAnnotationModel, removeAnnotationModelListener, removePosition, replaceAnnotations, replaceAnnotations, setLockObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JETAnnotationModel

public JETAnnotationModel(org.eclipse.core.resources.IResource resource)
Parameters:
resource -
Method Detail

isFireChanges

public boolean isFireChanges()
Returns:
boolean

setFireChanges

public void setFireChanges(boolean b)
Parameters:
b -

addAnnotation

public void addAnnotation(org.eclipse.jface.text.source.Annotation annotation,
                          org.eclipse.jface.text.Position position)
Specified by:
addAnnotation in interface org.eclipse.jface.text.source.IAnnotationModel
Overrides:
addAnnotation in class org.eclipse.jface.text.source.AnnotationModel

removeAllAnnotations

public void removeAllAnnotations()
Specified by:
removeAllAnnotations in interface org.eclipse.jface.text.source.IAnnotationModelExtension
Overrides:
removeAllAnnotations in class org.eclipse.jface.text.source.AnnotationModel

removeAnnotation

public void removeAnnotation(org.eclipse.jface.text.source.Annotation annotation)
Specified by:
removeAnnotation in interface org.eclipse.jface.text.source.IAnnotationModel
Overrides:
removeAnnotation in class org.eclipse.jface.text.source.AnnotationModel

fireAnnotationModelChanged

public void fireAnnotationModelChanged()

createMarkerAnnotation

protected org.eclipse.ui.texteditor.MarkerAnnotation createMarkerAnnotation(org.eclipse.core.resources.IMarker marker)
Method createMarkerAnnotation.

Overrides:
createMarkerAnnotation in class org.eclipse.ui.texteditor.AbstractMarkerAnnotationModel
Parameters:
marker - IMarker
Returns:
MarkerAnnotation

Copyright 2006 IBM Corporation and others.
All Rights Reserved.