| Summary: | [Compatibility] Cannot retrieve model item from within a legacy handler | ||
|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Remy Suen <remy.suen> |
| Component: | UI | Assignee: | Platform UI Triaged <platform-ui-triaged> |
| Status: | CLOSED WONTFIX | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | daniel.rolka, pelder.eclipse |
| Version: | 4.2 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | stalebug | ||
|
Description
Remy Suen
To avoid churn and relatively unscoped naming collision, the MItem that is executing a command is passed in using a static IEclipseContext. That means it's available for @Execute, but not in the application context as provided in the ExecutionEvent. See org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem.executeItem(Event) PW I'm not sure what's the best way to expose this, or if we should even try. One option: if you are using a 3.x handler, you can't really extract the model (you might get little bits, like the MApplication, but other than that we won't promise anything). Another option: we re-route the MItem and somehow "front" is as a UIElement for IElementUpdaters. PW 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. -- The automated Eclipse Genie. |