|Dynamic toolbar contribution [message #1248527]
||Mon, 17 February 2014 11:07
| Christian Pontesegger
Registered: July 2009
Location: Graz, Austria
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)?
Powered by FUDForum
. Page generated in 0.02968 seconds