Bug 140065 - [GlobalActions] Open up DeleteResourceAction for subclasses
Summary: [GlobalActions] Open up DeleteResourceAction for subclasses
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Platform UI Triaged CLA
QA Contact:
URL:
Whiteboard:
Keywords: api, helpwanted, needinfo
Depends on:
Blocks:
 
Reported: 2006-05-03 16:00 EDT by Rick Mandel CLA
Modified: 2019-09-06 16:12 EDT (History)
2 users (show)

See Also:


Attachments
derived from DeleteResourceAction (28.42 KB, application/octet-stream)
2006-05-03 16:06 EDT, Rick Mandel CLA
no flags Details
also derived from DeleteResourceAction (28.38 KB, application/octet-stream)
2006-05-03 16:10 EDT, Rick Mandel CLA
no flags Details
yet another derived from DeleteResourceAction (20.53 KB, application/octet-stream)
2006-05-03 16:13 EDT, Rick Mandel CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Rick Mandel CLA 2006-05-03 16:00:23 EDT
The attached is DeleteResourceAction derivative work because of restrictive access to private/protected methods/variables.  The attached file is provided to provide a means where customers can access the source so that the EPL is upheld, and prehaps encourage the powers that be loosen restrictions so the class can be subclassed.
Comment 1 Rick Mandel CLA 2006-05-03 16:06:36 EDT
Created attachment 40292 [details]
derived from DeleteResourceAction

from project.dev
Comment 2 Rick Mandel CLA 2006-05-03 16:10:25 EDT
Created attachment 40293 [details]
also derived from DeleteResourceAction

second case of a derivative DeleteResourceAction class.
Comment 3 Rick Mandel CLA 2006-05-03 16:13:34 EDT
Created attachment 40294 [details]
yet another derived from DeleteResourceAction

contained in com.ibm.datatools.project.ui.pdm.extenstions
Comment 4 John Arthorne CLA 2006-05-04 16:29:20 EDT
This is UI.
Comment 5 Eric Moffatt CLA 2006-05-05 14:06:48 EDT
Tod, you've done work on this action so over to you...
Comment 6 Tod Creasey CLA 2007-06-19 10:30:55 EDT
DeleteResourceAction is public and non final. What is the issue?
Comment 7 James Blackburn CLA 2008-01-14 07:06:38 EST
Hmm.. I've just encountered this as well.  The class is indeed public and non-final, however all the useful methods in it are private.  

For example: I just want to override confirmDeleteNonProjects to change the string displayed to the user when they use the delete action in my view.  Rather than saying "Are you sure you want to delete this x resource from the file system", I would like to explicitly list the files...  There seems to be no way to do this with the DeleteResourceAction.

Would it be possible to mark relevant methods protected -- or at least provide a way to contribute content to the dialog?
Comment 8 Tod Creasey CLA 2008-01-14 08:24:28 EST
If someone want to contribute a suggested patch I would be happy to review it. If it includes API changes we try and get those done by M5 (early Februrary).
Comment 9 Eclipse Webmaster CLA 2019-09-06 16:12:06 EDT
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.