Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Update on ControlContribution
Update on ControlContribution [message #487741] Thu, 24 September 2009 10:09 Go to next message
Jan is currently offline JanFriend
Messages: 12
Registered: July 2009
Junior Member
Hi all,

I've added a custom control to workbench's coolbar in
ActionBarAdvisor#fillCoolBar.

How do I update the control (change a label's text) from within
arbitrary code? There seems no way to access the workbench's CoolBarManager.

Thanks in advance
Re: Update on ControlContribution [message #487793 is a reply to message #487741] Thu, 24 September 2009 12:50 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

You would have to hook up your view (control) with your model (whatever determines its label).

We don't support trying to find things in the main menu or main toolbar/coolbar.

PW


Re: Update on ControlContribution [message #488067 is a reply to message #487793] Fri, 25 September 2009 13:40 Go to previous message
Jan is currently offline JanFriend
Messages: 12
Registered: July 2009
Junior Member
This is odd, as there is a method ICoolBarManager#find(id) but I just
can't access the manager.

Anyway: I try to store a global reference somewhere to that specific
ControlContribution and use that for updating it.

Paul Webster schrieb:
> We don't support trying to find things in the main menu or main
> toolbar/coolbar.
>
> PW
>
Previous Topic:view action enablement without selection provider
Next Topic:32-bit and 64-bit fat binaries on the Mac
Goto Forum:
  


Current Time: Sun Nov 23 07:48:28 GMT 2014

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

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