Bug 56490 - [Problems] Remove delete action from the Problem View
Summary: [Problems] Remove delete action from the Problem View
Status: VERIFIED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.0   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: 3.2 M6   Edit
Assignee: Tod Creasey CLA
QA Contact:
URL:
Whiteboard:
Keywords: polish
: 58549 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-03-28 02:02 EST by Brock Janiczak CLA
Modified: 2006-03-29 07:57 EST (History)
1 user (show)

See Also:


Attachments
Patch to only show delete action for editable marker types (3.34 KB, patch)
2004-04-16 01:34 EDT, Brock Janiczak CLA
no flags Details | Diff
Patch to remove tool item (1.21 KB, patch)
2006-02-17 14:35 EST, Tod Creasey CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Brock Janiczak CLA 2004-03-28 02:02:24 EST
3.0 M8

The delete action on the problem view can never be activated and therefore does
nothing.  The action will only enable for subtypes of Task and Bookmark where
they are user editable.  It doesn't really make sense to have a delete action
for problems anyway as they can only be 'resolved', not deleted.

I proppose to add a method isMarkerTypeEditable to the Util class and use this
to determine whether to add the delete action to the toolbar and context menu. 
The root marker type would have to be used as there doesn't seem to be any easy
way to access the MarkerManager.

I could provide a patch if this is deemed a problem.
Comment 1 Brock Janiczak CLA 2004-04-16 01:34:44 EDT
Created attachment 9564 [details]
Patch to only show delete action for editable marker types

changes to:
org.eclipse.ui.views.markers.internal.Util
org.eclipse.ui.views.markers.internal.MarkerView

Added isRootMarkerTypeEditable to Util
Updated MarkerView to use this new method to determine if the delete button
could ever be enabled.

NOTE: the formatting of the new code does not match the existing code
Comment 2 Tod Creasey CLA 2005-11-03 10:57:28 EST
*** Bug 58549 has been marked as a duplicate of this bug. ***
Comment 3 Tobias Schwarz CLA 2006-01-24 04:57:01 EST
when will this patch be integrated in standard eclipse?
shouldn't this be done with 3.2?
Comment 4 Tod Creasey CLA 2006-01-24 08:19:26 EST
I'll try to look at it for M5.
Comment 5 Tod Creasey CLA 2006-01-24 14:53:11 EST
I went for a simpler (and more effecient approach). I now ask the view if it is possible to edit a marker ever.
Comment 6 Tod Creasey CLA 2006-01-24 14:53:35 EST
Fixed in build >20060124
Comment 7 Tod Creasey CLA 2006-02-13 14:44:56 EST
We still have it in the toolbar in 20060213-1200
Comment 8 Tod Creasey CLA 2006-02-17 14:35:32 EST
Created attachment 34941 [details]
Patch to remove tool item
Comment 9 Tod Creasey CLA 2006-02-20 09:35:16 EST
Fixed in build >20060220
Comment 10 Tod Creasey CLA 2006-03-29 07:57:07 EST
Verified in 20060328