| Summary: | [Workbench] API to get action defintion ID from ActionFactory | ||
|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Dani Megert <daniel_megert> |
| Component: | UI | Assignee: | Billy Biggs <billy.biggs> |
| Status: | RESOLVED DUPLICATE | QA Contact: | |
| Severity: | enhancement | ||
| Priority: | P3 | CC: | kai-uwe_maetzel |
| Version: | 3.0 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | |||
I200409212000 In order to retarget some actions (e.g. ActionFactory.PROPERTIES) clients need to know the action definition ID. Currently I can only get the ID (getId()) from an ActionFactory but not the action definition ID. In order to get it I either have to hard-code the string (copy/paste) or write the following helper code: getActionDefinitionId(IWorkbenchWindow window, ActionFactory factory) { IWorkbenchAction action= factory.create(window); String actionDefinitionId= action.getActionDefinitionId(); action.dispose(); return actionDefinitionId; }