This Bugzilla instance is deprecated, and most Eclipse projects now use GitHub or Eclipse GitLab. Please see the deprecation plan for details.
Bug 394013 - Unable to get dropdown menu in ToolItem to display
Summary: Unable to get dropdown menu in ToolItem to display
Status: VERIFIED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.2.1   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: 4.4 M1   Edit
Assignee: Daniel Rolka CLA
QA Contact:
URL:
Whiteboard: candidate43
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-09 15:56 EST by Josh Davis CLA
Modified: 2013-08-13 08:05 EDT (History)
3 users (show)

See Also:


Attachments
Project that reproduces the issue (19.34 KB, application/octet-stream)
2012-11-09 15:56 EST, Josh Davis CLA
no flags Details
Screen capture of tool item with dropdown menu that will not display (27.38 KB, image/jpeg)
2012-11-09 15:58 EST, Josh Davis CLA
no flags Details
Sample with workaround (12.00 KB, multipart/x-zip)
2013-06-26 08:56 EDT, Daniel Rolka CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Josh Davis CLA 2012-11-09 15:56:49 EST
Created attachment 223416 [details]
Project that reproduces the issue

I have been trying to get dropdown menu to display in a toolitem, but haven't been able to get it to work.

I am using the MMenuFactory to create a MDirectToolItem and then I am setting a MMenu on that tool item. The MMenu has a couple items in it. When I run the application the tool item displays with the down arrow, but when I click on the down arrow the menu doesn't display.

I will attach screen prints and a project that reproduces the issue.
Comment 1 Josh Davis CLA 2012-11-09 15:58:33 EST
Created attachment 223417 [details]
Screen capture of tool item with dropdown menu that will not display
Comment 2 Josh Davis CLA 2012-11-09 15:59:29 EST
Here is my Eclipse version

Eclipse SDK
Version: 4.2.1
Build id: M20120914-1800
Comment 3 Marco Descher CLA 2012-12-10 09:45:07 EST
Josh, it is possible, although not the way you are doing it! I did not reproduce it in code but in the application model, funny thing is the following:

Part/Toolbar/HandledMenuItem/Menu/DirectMenuItem  -> works
Part/Toolbar/DirectMenuItem/Menu/DirectMenuItem   -> does NOT work

Whats the thing here?

One additional funny thing:

Part/Toolbar leads to the same menu as Part/Menus/ViewMenu!
Comment 4 Daniel Rolka CLA 2013-06-26 08:56:50 EDT
Created attachment 232785 [details]
Sample with workaround
Comment 5 Daniel Rolka CLA 2013-06-26 09:02:25 EDT
(In reply to comment #2)
> Here is my Eclipse version
> 
> Eclipse SDK
> Version: 4.2.1
> Build id: M20120914-1800

Josh,

I've created the sample project with workaround for the issue: https://bugs.eclipse.org/bugs/attachment.cgi?id=232785

I will continue to investigate the main issue,
Daniel
Comment 7 Daniel Rolka CLA 2013-08-01 03:58:50 EDT
Verified in the build: I20130730-0800