Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » Invalid ToolItem state with "org.eclipse.ui.file.save"
Invalid ToolItem state with "org.eclipse.ui.file.save" [message #1393889] Fri, 04 July 2014 12:35 Go to next message
Igor Laborie is currently offline Igor LaborieFriend
Messages: 2
Registered: July 2009
Junior Member
Hello,
I'm trying to migrate an Eclipse RCP application to e4 with the Luna Target Platform.
We use the compatibility layer.

I've a weird issue with the "org.eclipse.ui.file.save" command.
In my application I've use the "org.eclipse.ui.menus" extension point to use this command in:
* the "File" menu
* the main Eclipse toolbar
* inside the Editor in a form header toolbar.

In the "File" menu, the MenuItem state (enable/disable) matches the editor dirty state.
But in toolbars, the ToolItem state (enable/disable) is always the opposite of the dirty state.


Re: Invalid ToolItem state with "org.eclipse.ui.file.save" [message #1403133 is a reply to message #1393889] Mon, 21 July 2014 15:16 Go to previous messageGo to next message
Karl Puperze is currently offline Karl PuperzeFriend
Messages: 36
Registered: August 2011
Member
I have the exact same problem: https://www.eclipse.org/forums/index.php/t/796061/
Re: Invalid ToolItem state with "org.eclipse.ui.file.save" [message #1403135 is a reply to message #1403133] Mon, 21 July 2014 15:24 Go to previous messageGo to next message
Igor Laborie is currently offline Igor LaborieFriend
Messages: 2
Registered: July 2009
Junior Member
I've created a bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=440027
Re: Invalid ToolItem state with "org.eclipse.ui.file.save" [message #1403172 is a reply to message #1403135] Tue, 22 July 2014 06:55 Go to previous messageGo to next message
Karl Puperze is currently offline Karl PuperzeFriend
Messages: 36
Registered: August 2011
Member
Thanks. I hope we will get a patch soon, because we want to release in 2 nmonths.
Re: Invalid ToolItem state with "org.eclipse.ui.file.save" [message #1403262 is a reply to message #1403172] Tue, 22 July 2014 16:30 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
----------
This was sent already today in the morning but the nntp newsgroup sync has eaten is. See https://bugs.eclipse.org/bugs/show_bug.cgi?id=440142
----------
You can force revalidation by posting to the event bus.

Tom
Re: Invalid ToolItem state with "org.eclipse.ui.file.save" [message #1403268 is a reply to message #1403172] Tue, 22 July 2014 07:02 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
You can force revalidation by posting to the event bus.

Tom

On 22.07.14 08:55, Karl Puperze wrote:
> Thanks. I hope we will get a patch soon, because we want to release in 2
> nmonths.
Re: Invalid ToolItem state with "org.eclipse.ui.file.save" [message #1403348 is a reply to message #1403268] Wed, 23 July 2014 07:07 Go to previous messageGo to next message
Karl Puperze is currently offline Karl PuperzeFriend
Messages: 36
Registered: August 2011
Member
How to do that? And do I need to revalidate in every save action?
Re: Invalid ToolItem state with "org.eclipse.ui.file.save" [message #1412893 is a reply to message #1403348] Wed, 27 August 2014 09:59 Go to previous message
Karl Puperze is currently offline Karl PuperzeFriend
Messages: 36
Registered: August 2011
Member
eventBroker.send(
        UIEvents.REQUEST_ENABLEMENT_UPDATE_TOPIC,
        UIEvents.ALL_ELEMENT_ID
    );
Previous Topic:correct place for I18N classes
Next Topic:Eclipse 4.x API and 3.x API plugins in one RCP application
Goto Forum:
  


Current Time: Tue Mar 19 10:11:01 GMT 2024

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

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

Back to the top