|dynamic contribution and declarative commands in toolbar [message #645798]
||Mon, 20 December 2010 16:08
| Luca Ferrari
Registered: November 2009
I'm switching a toolbar made by declarative commands (i.e., commands declared in the plugin.xml) to a dynamic contribution that places buttons and other controls on the toolbar depending on some run-time information. The fact is that I'd like to keep as much as possible some declarative behaviour of the toolbar, so I'd like to have the fixed commands still declarative, and the dynamic ones generated at run-time.
I've therefore tried doing like the following:
where PerspectiveSwitcher is my contribution. The problem doing so is that my contributions override the declarative ones, so for instance I've got overlapped buttons. Is there a way to place dynamic contributions on the same toolbar without interfering and without using another toolbar?
Powered by FUDForum
. Page generated in 0.01637 seconds