Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » Using Popup Menu and MDirectMenuItem
Using Popup Menu and MDirectMenuItem [message #1701720] Wed, 15 July 2015 09:00 Go to next message
Carlos Gomez is currently offline Carlos GomezFriend
Messages: 63
Registered: October 2010
Member
Hello everybody,

I am using Eclipse Mars (Version 4.5, Build I20150603-2000) and e4 tools ( 0.14.0.v20141225-1728) to develop a RCP application.

In my application, I have a Tree where I add a popup menu to a selected item. On this menu, I add MDirectMenuItems that directly call specific handler classes. The popup menu works well and adding the MDirecMenuItems as well. But when I try to execute an added MDirecMenuItem, it does not work. I am using the following code on the aboutToShow() method to create my MDirectMenuItems:

MDirectMenuItem directMenuItem = modelService.createModelElement(MDirectMenuItem.class);
directMenuItem.setLabel("option1");
directMenuItem.setContributionURI("bundleclass://com.example.test/com.example.test.handlers.OptionHandler");
items.add(directMenuItem);


Do I miss anything?

I attach an example that reproduces this behavior.

Thanks for your help

Re: Using Popup Menu and MDirectMenuItem [message #1701753 is a reply to message #1701720] Wed, 15 July 2015 11:45 Go to previous messageGo to next message
Dirk Fauth is currently offline Dirk FauthFriend
Messages: 2903
Registered: July 2012
Senior Member
This is a bug in Mars and already discussed here: https://www.eclipse.org/forums/index.php/t/1068074/
Re: Using Popup Menu and MDirectMenuItem [message #1701857 is a reply to message #1701753] Thu, 16 July 2015 09:01 Go to previous message
Carlos Gomez is currently offline Carlos GomezFriend
Messages: 63
Registered: October 2010
Member
Thanks Dirk,

I have not see this discussion.
Previous Topic:View Menu of part and SWTBot
Next Topic:Mars Version: Problems with Dynamic menu contribution
Goto Forum:
  


Current Time: Tue Sep 24 18:50:49 GMT 2024

Powered by FUDForum. Page generated in 0.02840 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top