| Summary: | PluginAction allows disabled actions to run | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Brian Bauman <baumanbr> | ||||
| Component: | UI | Assignee: | Platform-UI-Inbox <Platform-UI-Inbox> | ||||
| Status: | RESOLVED INVALID | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | kleind, mukund, pwebster, remy.suen | ||||
| Version: | 3.7 | ||||||
| Target Milestone: | --- | ||||||
| Hardware: | PC | ||||||
| OS: | All | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Brian Bauman
Created attachment 186677 [details]
Proposed patch based on Eclipse 3.4.2
If possible, I would really appreciate if this could be considered for Eclipse 3.7. It's the responsibility of the caller to check enabled state before calling. ActionContributionItems disable the menus and tool items based on that state, so that it cannot be called. The key binding system checks isEnabled before calling (which runs through the command system), and programmatic executing through the IHandlerService (which goes through Command) also calls isEnabled() before executing (both delegate to the action). PW I'll also say I do like that your request came with a patch. Still, I don't want to change an execution path in the heart of the legacy action delegate support. PW |