Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 74569

Summary: [Workbench] API to get action defintion ID from ActionFactory
Product: [Eclipse Project] Platform Reporter: Dani Megert <daniel_megert>
Component: UIAssignee: 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:

Description Dani Megert CLA 2004-09-22 11:15:55 EDT
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;
}
Comment 1 Dani Megert CLA 2004-11-03 14:02:34 EST
Dup of bug 54581.
Comment 2 Dani Megert CLA 2004-11-03 14:02:59 EST
Dup of bug 54581.

*** This bug has been marked as a duplicate of 54581 ***

*** This bug has been marked as a duplicate of 54581 ***