Community
Participate
Working Groups
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.
Created attachment 40292 [details] derived from DeleteResourceAction from project.dev
Created attachment 40293 [details] also derived from DeleteResourceAction second case of a derivative DeleteResourceAction class.
Created attachment 40294 [details] yet another derived from DeleteResourceAction contained in com.ibm.datatools.project.ui.pdm.extenstions
This is UI.
Tod, you've done work on this action so over to you...
DeleteResourceAction is public and non final. What is the issue?
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?
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).
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.