Bug 152947 - [reconciling] org.eclipse.jdt.core.compilationParticipant and duplicated problem annotations
Summary: [reconciling] org.eclipse.jdt.core.compilationParticipant and duplicated prob...
Status: ASSIGNED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-07 04:58 EDT by Konstantin Scheglov CLA
Modified: 2007-02-09 16:22 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.