Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » MenuItems always disabled with Kepler M4
MenuItems always disabled with Kepler M4 [message #1006680] Fri, 01 February 2013 12:12 Go to next message
Dirk Fauth is currently offline Dirk FauthFriend
Messages: 2902
Registered: July 2012
Senior Member
Hi,

I noticed some strange behaviour with running my Eclipse 4 application on Kepler M4 platform. If the HandledMenuItems are connected to a CommandHandler, they will always show up disabled. This is not true if the application is executed with a 4.2 platform.

First I thought this is related to using Core Expression visibility rules. But it seems this is also true if I don't use them. I'm not sure why this happens and I opened a ticket for this. I even attached an example.

https://bugs.eclipse.org/bugs/show_bug.cgi?id=399657

Can anybody confirm this bug or at least give me a hint what is wrong? If this happends because of some plugins?

Thanks in advance,
Dirk
Re: MenuItems always disabled with Kepler M4 [message #1006688 is a reply to message #1006680] Fri, 01 February 2013 12:50 Go to previous messageGo to next message
Beat Schaller is currently offline Beat SchallerFriend
Messages: 42
Registered: July 2009
Member
Hi Dirk

You're right. I don't not the state of this bug, but if you start the wizard to create the E4 Application there is an addon missing:

  <addons xmi:id="_e3mMgGR5EeKSBuqN6T0XkQ" elementId="org.eclipse.e4.ui.workbench.handler.model" contributionURI="bundleclass://org.eclipse.e4.ui.workbench/org.eclipse.e4.ui.internal.workbench.addons.HandlerProcessingAddon"/>


jut add this one to your Application.e4xmi and it works.

Beat
Re: MenuItems always disabled with Kepler M4 [message #1006690 is a reply to message #1006688] Fri, 01 February 2013 12:52 Go to previous messageGo to next message
Dirk Fauth is currently offline Dirk FauthFriend
Messages: 2902
Registered: July 2012
Senior Member
Thanks Beat for answering. Sopot answered in the bug directly with the same information.

Adding the org.eclipse.e4.ui.internal.workbench.addons.HandlerProcessingAddon to the addons of my application solved the issue.
Re: MenuItems always disabled with Kepler M4 [message #1006726 is a reply to message #1006690] Fri, 01 February 2013 15:53 Go to previous messageGo to next message
Lars Vogel is currently offline Lars VogelFriend
Messages: 1098
Registered: July 2009
Senior Member

For this and potential other Eclipse 4 problems I recommend to check: Eclipse 4 common problems
Re: MenuItems always disabled with Kepler M4 [message #1086747 is a reply to message #1006688] Wed, 14 August 2013 17:07 Go to previous message
Stefan Hennig is currently offline Stefan HennigFriend
Messages: 4
Registered: January 2013
Junior Member
Thank's for this valuable answer. Today I ran into the same issue and adding this addon to my Application.e4xmi saved my day!!!
Previous Topic:Problem with selectionChanged
Next Topic:ContextMenu and TreeItem data
Goto Forum:
  


Current Time: Tue Mar 19 02:08:13 GMT 2024

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

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

Back to the top