Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » Dynamic toolbar contribution
Dynamic toolbar contribution [message #1248527] Mon, 17 February 2014 11:07
Christian Pontesegger is currently offline Christian PonteseggerFriend
Messages: 191
Registered: July 2009
Location: Graz, Austria
Senior Member
I want to create a dynamic contribution to a toolbar of a given view.
As I do not know the view ID beforehand, I cannot implement it in the plugin.xml as a dynamic contribution.

If I add a AbstractContributionFactory at runtime it will be used to render view toolbars for views that were not rendered before. Eg a view that will be opened by the user at a later time or a view that is hidden within a stack and was not displayed before.

Unfortunately my factory is not used for views already displayed.
In that case I use
which works fine.

The problem I see is for views that are open, but hidden within a stack (and not rendered before): there both my factory and toolbarmanager.add() will be applied.

Is there a way to resolve this (at best one that also works for 3.x)?


Previous Topic:Unable to Invoke Live Model Editor
Next Topic:Exception when using application editor for RCP app.
Goto Forum:

Current Time: Fri Apr 20 14:57:59 GMT 2018

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

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