Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Update on ControlContribution
Update on ControlContribution [message #487741] Thu, 24 September 2009 06:09 Go to next message
Eclipse UserFriend
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 08:50 Go to previous messageGo to next message
Eclipse UserFriend
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 09:40 Go to previous message
Eclipse UserFriend
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 Jun 15 21:25:23 EDT 2025

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

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

Back to the top