Summary: | [CommonNavigator]override resourceAction (refresh,open, close, build) | ||||||
---|---|---|---|---|---|---|---|
Product: | [Eclipse Project] Platform | Reporter: | Simon Bernard <code> | ||||
Component: | UI | Assignee: | Francis Upton IV <francisu> | ||||
Status: | NEW --- | QA Contact: | |||||
Severity: | enhancement | ||||||
Priority: | P3 | CC: | batxut, pwebster, yaumunlam | ||||
Version: | 3.5.1 | ||||||
Target Milestone: | --- | ||||||
Hardware: | PC | ||||||
OS: | Windows XP | ||||||
Whiteboard: | |||||||
Attachments: |
|
Description
Simon Bernard
2009-12-31 07:17:00 EST
I will propose a patch Created attachment 155229 [details]
a patch for this bug
See also bug 294416 Thank you for your patch Simon, but I'm afraid we can't go with it, at it extends more API in using Actions which is something that we don't want to extend the API for, since Actions have been superseded by Commands. However, unfortunately the CNF has not really had good support for commands, and this is the subject of bug 304925. I had hoped to try to get something in for that in time for M6 (API freeze) but that is not to be. Ultimately we want to have handlers/commands to replace the Actions that are used by the Project Explorer and will thus be available for users of the CNF with resources. In the meantime, I can offer that the RefreshAction and the ResourceMgtActionProviders are essentially copied nearly verbatim from the (now deprecated) Resource Navigator. You can find their corresponding classes in o.e.ui.ide under o.e.ui.views.navigator (look at the WorkspaceActionGroup class). These are public and can therefore be subclassed as required, even though they are deprecated. It looks like the real solution to your problem (using Commands and Handlers) will not be possible until after 3.6. Sorry for the bureaucracy about this, but we have to be really careful about what we add to API since we end up supporting it forever. I understand, thanks for your answer :) 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. |