Community
Participate
Working Groups
It would nice to have a package that was strictly for actions...just like jdt debug ui. org.eclipse.debug.iternal.ui.actions
Agreed. There should be an action package. Where possible, actions should be contributed via plug-in XML rather than hardcoded by a view. Also, action updating (enabling) should be handled by the action rather than the view where possible. This reduces the cohesion between actions and views, and makes the actions more portable/reuseable. Not sure if a bug has been filed against the workbench, but it is crucial that "view action delegates" get a "dispose" callback such that they can remove themselves as event listeners, etc. This is one roadblock I have found in using action contributions effectively.
A dispose callback would work for bug 7010 as well...the reason I wanted to know when the last editor was closed was to remove the action delegate as a listener.
Filed bug 7235 for the dispose problem.
The current workaround for not having a dispose call on an IViewActionDelegate is to add the action as a IPartListener. When the part closes, this is treated as a dispose.
Deferred until 7235 is fixed.
Resolving to later.
We are using the IActionDelegate2 interface and the #dispose method this provides. Closing.
As of now 'LATER' and 'REMIND' resolutions are no longer supported. Please reopen this bug if it is still valid for you.