[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to change Global Action's menu item label?

You can change the label of global workbench actions that are defined as 
LabelRetargetActions.  You can look at the 
WorkbenchActionBuilder>>makeActions() method to determine which global 
actions are LabelRetargetActions.  Currently the Find/Replace action is 
not defined as a LabelRetargetAction, just a RetargetAction (which allows 
you to supply your own implementation for the action via the 
IActionBars.setGlobalActionHandler method). 

If you need the FindReplaceAction to be a LabelRetargetAction, you should 
open a bug report. 

Also, note that the ReadmeToolExample (org.eclipse.ui.examples.readmetool) 
illustrates using RetargetActions (including LabelRetargetActions). 

Hope this helps...

Lynne