Bug 312465 - Report elements affected by a Java problem reported as an IMarkerDelta
Summary: Report elements affected by a Java problem reported as an IMarkerDelta
Status: NEW
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.6   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-11 12:52 EDT by Mário Guimarães CLA
Modified: 2010-05-11 12:58 EDT (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 Mário Guimarães CLA 2010-05-11 12:52:37 EDT
Build Identifier: 

When a Java file has a compilation error an IResourceChangeEvent is generated after the build for which an IMarkerDelta object can be retrieved referring a Java problem (one of the values in org.eclipse.jdt.core.compiler.IProblem) by calling IMarkerDelta.getAttribute(IJavaModelMarker.ID).

However, there is no explicit information regarding the IJavaElements involved in the problem.

This request aims to fulfil this missing information, for example, via an API like

IJavaElement[] IMarkerDelta.getAttribute(IJavaModelMarker.AFFECTED)

which would make it easier to process these IMarkerDeltas in a general way, without the need to process each specific error type to retrieve the affected IJavaElements.


Reproducible: Always