Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » Inverse enabled state in Save and Save all toolbar command
Inverse enabled state in Save and Save all toolbar command [message #1403090] Mon, 21 July 2014 10:12 Go to next message
Karl Puperze is currently offline Karl PuperzeFriend
Messages: 36
Registered: August 2011
Member
I have added the save and save all command to the main menu and the toolbar via HandleMenuItem and HandledToolItem contributions. When I open an editor and make changes, the menu items in the main menu get enabled, but not the one in the toolbar. When I hit save the menu items in the main menu get disabled and the ones in the toolbar get enabled.

I need a hint on where to debug the system to find out what goes wrong.
Re: Inverse enabled state in Save and Save all toolbar command [message #1403130 is a reply to message #1403090] Mon, 21 July 2014 14:26 Go to previous messageGo to next message
Karl Puperze is currently offline Karl PuperzeFriend
Messages: 36
Registered: August 2011
Member
Looks like org.eclipse.ui.internal.handlers.SaveHandler#evaluate is evaluated after the enabled state of the tool items has been updated. I am pretty sure this worked in 4.3!!
Re: Inverse enabled state in Save and Save all toolbar command [message #1403267 is a reply to message #1403130] Mon, 21 July 2014 15:11 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6599
Registered: July 2009
Senior Member
ToolItem Enablement handling has be rewritten in 4.4. It is not timer
base anymore. Maybe there's a bug been introduced for 3.x RCPs?

Tom

On 21.07.14 16:26, Karl Puperze wrote:
> Looks like org.eclipse.ui.internal.handlers.SaveHandler#evaluate is
> evaluated after the enabled state of the tool items has been updated. I
> am pretty sure this worked in 4.3!!
Re: Inverse enabled state in Save and Save all toolbar command [message #1403819 is a reply to message #1403090] Mon, 28 July 2014 06:56 Go to previous message
Daniel Darvas is currently offline Daniel DarvasFriend
Messages: 10
Registered: July 2014
Junior Member
I have the same problem. As it seems to be a bug and I haven't found any similar tickets, I filed a new one: https://bugs.eclipse.org/bugs/show_bug.cgi?id=440508
Previous Topic:MinMaxAddon - small version of buttons - feature or bug?
Next Topic:Separate CSS stylings in different plugins
Goto Forum:
  


Current Time: Thu Jun 24 07:20:59 GMT 2021

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

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

Back to the top