Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Can I add toolbaritems defind by a plugin(in plugin.xml) anywhere I want in the eclipse-coolbar??
Can I add toolbaritems defind by a plugin(in plugin.xml) anywhere I want in the eclipse-coolbar?? [message #314610] Wed, 18 April 2007 08:58 Go to next message
Eclipse UserFriend
Hi there,

I've got an rpc-app with a menu and coolbar defined (using eclipses
menu/coolbar). Menu and coolbar are defined programmatically in my
'ActionBarAdvisor' in the fillMenuBar- and fillCoolbar-methods.
There are two toolbarmanager added to the coolbar programmatically.

While may rcp-app is running I open some perspectives that also define
their menu and toolbar (this time defined in the plugin.xml). These
defined menus and toolbars are added to the main eclipse menu-/coolbar
as well.
So far no problem.

What I want to do now is to put the toolbar-items defined in the
plugin.xml of the perspectives, in the middle of my two toolbarmanager
that where defined programmatically in the rcp-app and added to the coolbar.

Is there a way to achieve this?
I read something about using groupmarker or separators, but I didn't
manage to do what I want.

Any help or hints appreciated

Greets Alex
Re: Can I add toolbaritems defind by a plugin(in plugin.xml) anywhere I want in the eclipse-coolbar? [message #314685 is a reply to message #314610] Thu, 19 April 2007 08:52 Go to previous message
Eclipse UserFriend
I think you need to specify your toolbarId/groupMarkerId in your
toolbarPath in your actionSet ... but it might be that actionSets don't
allow you to contribute to an existing toolbar in the coolbar.

In 3.3 you can use org.eclipse.ui.menus to place contributions into an
existing toolbar.

Later,
PW
Previous Topic:Finding the active IViewReference in an IViewPart
Next Topic:Help with adding wizard shortcut
Goto Forum:
  


Current Time: Fri May 02 14:43:41 EDT 2025

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

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

Back to the top