|Query view initialization state in a stack [message #1468459]
||Mon, 10 November 2014 21:43
| Christian Pontesegger
Registered: July 2009
Location: Graz, Austria
I want to add toolbar contributions to views during runtime and am struggling with view initialization.|
When views are stacked only the visible view is fully initialized upon workbench startup. Hidden views in the same stack seem to be partly initialized.
The difference for those states is that a contributionFactory for toolbars seems to be queried the first time a view is brought to the top. I guess this is a one time action and cannot be re-triggered.
So adding a contributionFactory to a so far hidden view will add a toolbar entry while this does not work anymore if the view has already been brought to the top before. In the latter case we may add a toolbar entry directly to the toolbarmanager.
Now I need to find out if a view belongs to the first or the second group to decide how to add a toolbar entry. How can this be done?
Powered by FUDForum
. Page generated in 0.02019 seconds