Bug 391711 - [Markers] org.eclipse.ui.internal.views.markers.QuickFixHandler duplicates selected marker
Summary: [Markers] org.eclipse.ui.internal.views.markers.QuickFixHandler duplicates se...
Status: CLOSED DUPLICATE of bug 441573
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.2   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform UI Triaged CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords: helpwanted
Depends on:
Blocks:
 
Reported: 2012-10-11 15:27 EDT by Lars Ködderitzsch CLA
Modified: 2019-07-11 03:56 EDT (History)
4 users (show)

See Also:


Attachments

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