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

Bug 391711

Summary: [Markers] org.eclipse.ui.internal.views.markers.QuickFixHandler duplicates selected marker
Product: [Eclipse Project] Platform Reporter: Lars Ködderitzsch <lars>
Component: UIAssignee: Platform UI Triaged <platform-ui-triaged>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: josef.j.probst, litaocdl, loskutov, pwebster
Version: 4.2Keywords: helpwanted
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard: stalebug

Description Lars Ködderitzsch CLA 2012-10-11 15:27:32 EDT
I have a custom MarkerResolution based on org.eclipse.ui.views.markers.WorkbenchMarkerResolution.

When the quickfix is invoked via Problems view the dialog to select similar fixable markers appears - however the marker selected in the Problems view is duplicated.

As far as I understand the problem lies within org.eclipse.ui.internal.views.markers.QuickFixHandler.execute(ExecutionEvent).

Here the list of all markers is passed to the WorkbenchMarkerResolution#findOtherMarkers() method, obviously also containing the selected marker. 
Since this method is passed no other context than "allMarkers" the returned array naturally also contains the selected marker.

However, the selected marker is then again added to the result list, leading to the duplication.
Comment 1 Tao LI CLA 2013-09-02 04:31:11 EDT
I also met this issue when I want to impl quickfix in our product, the duplicated selection can not be tolerant, So wondering when this issue could be fixed ?
Comment 2 Paul Webster CLA 2013-09-04 10:14:25 EDT
It's waiting on a contribution (helpwanted):  See http://wiki.eclipse.org/Platform_UI/How_to_Contribute

PW
Comment 3 Eclipse Genie CLA 2019-01-06 14:27:56 EST
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.
Comment 4 Jose Probst CLA 2019-07-11 03:51:57 EDT
Was already fixed with https://bugs.eclipse.org/bugs/show_bug.cgi?id=441573
-> duplicate + already fixed
Comment 5 Andrey Loskutov CLA 2019-07-11 03:56:17 EDT

*** This bug has been marked as a duplicate of bug 441573 ***