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

Bug 328815

Summary: Menu Contribute has no Labels for Toolbars
Product: [Eclipse Project] Platform Reporter: Peter Dell <jac>
Component: IDEAssignee: Platform-UI-Inbox <Platform-UI-Inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P3    
Version: 3.6.1   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Screenshot of "Customize Perspective" none

Description Peter Dell CLA 2010-10-27 08:34:16 EDT
Build Identifier: M20100909-0800

Occurs in 3.4.2 and also in 3.6.1

When I create a new toolbar menu as follows, it is displayed correctly. But when I open the "Customizie Perspective" view the toolbar is displayed on the "Toolbar Visibility" tab with an empty label. I tried to add a "label" tag, but it does not help.


      <menuContribution
            locationURI="toolbar:org.eclipse.ui.main.toolbar?after=additions">
            label="%com.wudsn.ide.asm.editor.AssemblerEditorAssemblerMenu.label"
         <toolbar 
               id="com.wudsn.ide.asm.editor.AssemblerEditorAssemblerMenu">
            <command
                  commandId="com.wudsn.ide.asm.editor.AssemblerEditorCompileAndRunCommand"
                  icon="icons/atari-16x16.gif"
                  id="com.wudsn.ide.asm.editor.AssemblerEditorCompileAndRunCommand">
            </command>
         </toolbar>
      </menuContribution>

Reproducible: Always
Comment 1 Peter Dell CLA 2010-10-27 08:35:19 EDT
Created attachment 181827 [details]
Screenshot of "Customize Perspective"
Comment 2 Paul Webster CLA 2010-10-27 10:17:00 EDT
I ran this in 3.6 and it worked:

<menuContribution
      allPopups="false"
      locationURI="toolbar:org.eclipse.ui.main.toolbar?after=additions">
   <toolbar
         id="z.ex.toolbar.toolbar1"
         label="Show This Toolbar">
      <command
            commandId="org.eclipse.ui.edit.cut"
            style="push">
      </command>
      <command
            commandId="org.eclipse.ui.edit.copy"
            style="push">
      </command>
      <command
            commandId="org.eclipse.ui.edit.paste"
            style="push">
      </command>
   </toolbar>
</menuContribution>

*** This bug has been marked as a duplicate of bug 296738 ***
Comment 3 Peter Dell CLA 2010-10-27 12:59:30 EDT
Thanks for the swift response. I found that the IDE V 3.4.2 UI plugin was imported as source project in the workspace. This caused the 3.6.x fix to be hidden.

Thanks, Peter.