Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 312465

Summary: Report elements affected by a Java problem reported as an IMarkerDelta
Product: [Eclipse Project] JDT Reporter: Mário Guimarães <mljrg>
Component: CoreAssignee: JDT-Core-Inbox <jdt-core-inbox>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: P3 CC: mljrg, remy.suen
Version: 3.6   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

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