Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JFace » Can I add Button to Coolbar(Button in Coolbar)
Can I add Button to Coolbar [message #636012] Thu, 28 October 2010 23:04 Go to next message
Janusz Dalecki is currently offline Janusz DaleckiFriend
Messages: 63
Registered: January 2010
Location: Sydney
Member
I would like to add a button directly to the ICoolBarManager in fillCoolBar method of my ApplicationActionBarAdvisor.
If I create Action or ActionContributionItem and add it to the ICoolBarManager it is not shown on the coolbar.
It is only shown if I add first ToolBarManager to coll bar and then I add an Action/ActionContributionItem to that ToolBarManager .
Is there a way to add an item directly to the cool bar?
Regards,
Janusz
Re: Can I add Button to Coolbar [message #636076 is a reply to message #636012] Fri, 29 October 2010 08:49 Go to previous messageGo to next message
Prakash G.R. is currently offline Prakash G.R.Friend
Messages: 621
Registered: July 2009
Senior Member
On 29/10/10 4:34 AM, Janusz Dalecki wrote:
> I would like to add a button directly to the ICoolBarManager in
> fillCoolBar method of my ApplicationActionBarAdvisor.
> If I create Action or ActionContributionItem and add it to the
> ICoolBarManager it is not shown on the coolbar.
> It is only shown if I add first ToolBarManager to coll bar and then I
> add an Action/ActionContributionItem to that ToolBarManager .
> Is there a way to add an item directly to the cool bar?
> Regards,
> Janusz
>


Did you try ControlContribution?

--
- Prakash
Platform UI Team, IBM

www.eclipse-tips.com
Re: Can I add Button to Coolbar [message #636245 is a reply to message #636012] Fri, 29 October 2010 20:24 Go to previous message
Janusz Dalecki is currently offline Janusz DaleckiFriend
Messages: 63
Registered: January 2010
Location: Sydney
Member
Yep. Still does not work - I can only add my ControlContribution (after implementing createControl method) to one of the toolbars but not the coolbar.
Regards,
Janusz
Previous Topic:Creating a custom control and viewer
Next Topic:TreeViewer with multiple columns
Goto Forum:
  


Current Time: Fri Apr 26 23:38:26 GMT 2024

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

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

Back to the top