Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 328815 - Menu Contribute has no Labels for Toolbars
Summary: Menu Contribute has no Labels for Toolbars
Status: CLOSED DUPLICATE of bug 296738
Alias: None
Product: Platform
Classification: Eclipse Project
Component: IDE (show other bugs)
Version: 3.6.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-27 08:34 EDT by Peter Dell CLA
Modified: 2010-10-27 12:59 EDT (History)
0 users

See Also:


Attachments
Screenshot of "Customize Perspective" (14.51 KB, image/png)
2010-10-27 08:35 EDT, Peter Dell CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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.