Bug 152947

Summary: [reconciling] org.eclipse.jdt.core.compilationParticipant and duplicated problem annotations
Product: [Eclipse Project] JDT Reporter: Konstantin Scheglov <Konstantin.Scheglov>
Component: TextAssignee: JDT-Text-Inbox <jdt-text-inbox>
Status: ASSIGNED --- QA Contact:
Severity: enhancement    
Priority: P3 CC: eclipse, nin
Version: 3.2   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Konstantin Scheglov CLA 2006-08-07 04:58:02 EDT
I use org.eclipse.jdt.core.compilationParticipant to add reconcile CategorizedProblem's and also problem markers in "processAnntations" method (BTW, IMHO bad name, it was not obvious for me that this method should be used not only for annotations processing, but also for any build time processing). This works in general.

  Only problem now is that I can have two annotations on same line. First - for marker added during build, second - for fixable problem during reconcile. As I can see, with standard problems JDT behaves differently. If problem has quick fix and there was "build time" marker, it shows only "quick fix" marker. For my problems I see both - "build time" and "quick fix" markers. 

  As stated in JDT group this is because JDT uses some special handling for displaying annotations in CompilationUnitAnnotationModel. Is it possible to make  this behaviour more general to support partipant's problems/markers as good as "native" JDT ones?
Comment 1 Dani Megert CLA 2006-08-07 05:08:29 EDT
>(BTW, IMHO bad name, it was not obvious for me that this method should be used
>not only for annotations processing, but also for any build time processing).
This is JDT Core.

We should replace the special handling for Java problems now that we have a categorized problem which gives access to the marker type.