Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » How can I enable/disable main tool bar buttons?(From anywhere in the RCP application?)
icon5.gif  How can I enable/disable main tool bar buttons? [message #653740] Thu, 10 February 2011 22:35 Go to next message
SBS  is currently offline SBS Friend
Messages: 57
Registered: January 2011
Member
I have defined commands and handlers for a few main tool bar buttons and they work as required but I would like to also be able to enable and disable them programatically from various places in the application?

How do I achieve that? What controls their enabled statuses? How do I get access to them from anywhere?
Re: How can I enable/disable main tool bar buttons? [message #653761 is a reply to message #653740] Fri, 11 February 2011 03:54 Go to previous message
Prakash G.R. is currently offline Prakash G.R.Friend
Messages: 621
Registered: July 2009
Senior Member
On 11/02/11 4:05 AM, SBS wrote:
> I have defined commands and handlers for a few main tool bar buttons and
> they work as required but I would like to also be able to enable and
> disable them programatically from various places in the application?
>
> How do I achieve that? What controls their enabled statuses? How do I
> get access to them from anywhere?

Have a look at ICommandService, IHandlerService & IEvaluationService

--
- Prakash
Platform UI Team, IBM

www.eclipse-tips.com
Previous Topic:PerspectiveBarManager: how to avoid Discouraged access?
Next Topic:application can't start after exported
Goto Forum:
  


Current Time: Wed Apr 24 16:48:43 GMT 2024

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

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

Back to the top