Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Form toolbar usage issue
Form toolbar usage issue [message #511647] Tue, 02 February 2010 11:41 Go to next message
Mustufa Kasidwala is currently offline Mustufa KasidwalaFriend
Messages: 60
Registered: July 2009
Member
Hi,

I am using 'form toolbar' of my editor to place commands. These commands get
enabled/disabled based on certain criteria (when the focus is on a table in
the editor), this works fine if we have only one editor open. But if the
user opens multiple editors and rearranges them so that he can see more than
one editor, the toolbar commands don't show proper state. If a command gets
enabled on one editor, it automatically gets enabled on other editor too,
same with disable state. I am attaching an image here with a snapshot of the
problem i am facing.

Basically, what i need is, if a command gets enabled on one editor, it
shouldn't update the state of another editor using the same command.

I am using handler extension with activeWhen criteria to enable/disable
commands.

Is there a solution to this issue ?

--
Thanks and Regards

Mustufa Kasidwala



Re: Form toolbar usage issue [message #512047 is a reply to message #511647] Wed, 03 February 2010 17:55 Go to previous message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

Mustufa Kasidwala wrote:
> Basically, what i need is, if a command gets enabled on one editor, it
> shouldn't update the state of another editor using the same command.

No, there is no fix for this in 3.x. The state enabled is an attribute
of the Command itself. Multiple tool items all point to the same
command, so when it's enabled all visible instances would be updated.

There's a bug open about this (it shows up easily in multi-instance
views) but I can't find it at the moment.

PW

--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse .platform.doc.isv/guide/workbench.htm


Previous Topic:RCP Views
Next Topic:how to add scroll bars to a section page
Goto Forum:
  


Current Time: Sun Dec 21 10:55:03 GMT 2014

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

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