Bug 152780 - [Wizards] NewWizardShortcutAction forces all new wizard actions to use the first letter of their label as the accelerator
Summary: [Wizards] NewWizardShortcutAction forces all new wizard actions to use the fi...
Status: RESOLVED DUPLICATE of bug 135404
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Karice McIntyre CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-03 15:22 EDT by Dan O'Connor CLA
Modified: 2006-08-03 16:43 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dan O'Connor CLA 2006-08-03 15:22:45 EDT
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;
    }
Comment 1 Karice McIntyre CLA 2006-08-03 16:43:53 EDT

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