Community
Participate
Working Groups
If I contribute a newWizard to the workbench and then add it to my list of perspective wizard shortcuts the NewWizardShortcutAction will force the accelerator key for the action to be the first letter of the label of the action. User can define the accelerator to be which ever letter they want by using an ampersand in the action label, or by using & at the appropriate string position in the plugin.xml file. This accelerator should be honored... The following code forces the first letter to be the accelerator: public NewWizardShortcutAction(IWorkbenchWindow window, IWizardDescriptor wizardDesc) { super('&' + wizardDesc.getLabel()); setToolTipText(wizardDesc.getDescription()); setImageDescriptor(wizardDesc.getImageDescriptor()); setId(ActionFactory.NEW.getId()); wizardElement = wizardDesc; this.window = window; }
*** This bug has been marked as a duplicate of 135404 ***