Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 356309 - [Commands] Dropdown menu in toolbar is rendered but submenu is not shown
Summary: [Commands] Dropdown menu in toolbar is rendered but submenu is not shown
Status: CLOSED DUPLICATE of bug 367159
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.1   Edit
Hardware: PC Windows 7
: P3 major (vote)
Target Milestone: 4.2 M5   Edit
Assignee: Platform UI Triaged CLA
QA Contact: Paul Webster CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-31 08:07 EDT by Stefan Wiese CLA
Modified: 2012-01-17 08:46 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Wiese CLA 2011-08-31 08:07:47 EDT
Build Identifier: I20110620-1631

When contributing a menu to a HandledToolItem in order to create a dropdown menu in the main toolbar a dropdown is rendered but no submenu items are shown. The contribution is made the declarative way.

Reproducible: Always

Steps to Reproduce:
The behaviour can be reproduced with the following fragment snippet:

<fragments xsi:type="fragment:StringModelFragment" xmi:id="_U3cDULOhEeCjau1PwZK1gw" featurename="children" parentElementId="toolbar:org.eclipse.ui.main.toolbar">
    <!- ...  -->
    <elements xsi:type="menu:HandledToolItem" elementId="de.wiese24.billingE4.merchants.toolitem.sendquestionnaire" label="Fragebogen" iconURI="platform:/plugin/de.wiese24.billingE4.merchants/src/images/sent_questionnaire16x16.png" tooltip="Fragebogen versenden" enabled="false" command="_JDgQ8NMLEeC5q_H-NgTNZA"/>
  </fragments>
  <fragments xsi:type="fragment:StringModelFragment"  featurename="menu" parentElementId="de.wiese24.billingE4.merchants.toolitem.sendquestionnaire">
    <elements xsi:type="menu:Menu" elementId="de.wiese24.billingE4.merchantmenu.dropdown" label="nochnmenu">
      <children xsi:type="menu:HandledMenuItem" elementId="submenu2" label="sub2" command="_X1UBMM2hEeCK3u-rhHrqXQ"/>
      <children xsi:type="menu:HandledMenuItem" elementId="submenu1" label="sub1" command="_aNzXoM_HEeCnKcaTRmmBRg"/>
    </elements>
  </fragments>
Comment 1 Remy Suen CLA 2011-09-02 13:09:15 EDT
The tool item's menu never gets rendered so it has no widget.
Comment 2 Stefan Wiese CLA 2011-09-20 03:21:08 EDT
(In reply to comment #1)
> The tool item's menu never gets rendered so it has no widget.
>>Hmm, what does that mean? Is it due to a misconfiguration  or is it a bug? Is there a workaround possible?
Comment 3 Remy Suen CLA 2011-09-20 08:01:10 EDT
(In reply to comment #2)
> >>Hmm, what does that mean? Is it due to a misconfiguration  or is it a bug?

It is an actual bug.

> Is there a workaround possible?

I think if you force the rendering engine to create the widget for the menu it may work.
Comment 4 Eric Moffatt CLA 2011-12-09 13:09:48 EST
Aggregate move to M5. Retarget to a different milestone if you wish...
Comment 5 Paul Webster CLA 2012-01-17 08:46:46 EST

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