Project: JDT
Bug 165294 [misc] Annotation model of Java editor should respect annotations from underlying file buffer annotation model
Reported: 2006-11-21 05:00:59 | Status: resolved fixed

3.3 M3 Currently, the Java editor uses its own CompilationUnitAnnotationModel which inherits from ResourceMarkerAnnotationModel. This annotation model has no connection to the annotation model of the underlying file buffer. This makes it hard to populate a Java editor with annotations that need to be updated on document changes. Ideally, this should be possible to set up during file buffer creating and disposal events. We should investigate whether the CompilationUnitAnnotationModel could delegate to the file buffer annotation model rather than inherit from a resource marker annotation model.

Files changed in fix:
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitDocumentProvider.java