|dynamic items in a views toolbar [message #727501]
||Wed, 21 September 2011 09:20
| Christian Stellwag
Registered: July 2009
i'd like to programmatically add IContributionItems to a ViewParts Toolbar.
And let them be dynamic, i.e. show them or not.
Any way/idea to achieve that behavior is appreciated.
1) I tried with setVisible(y/n) which causes 'empty space' in the toolbar - not so nice.
2) I tried to add / remove, prepend / append, prependToGroup / appendToGroup, but unfortunately it's not possible to create a item _before_ (left side of) another IContributionItem that is always there
3) I didn't try setWidth = 0 due to missing layout manager
-> only way i can achieve it is 1) or create on the right side of other item.
Any good ideas on that are appreciated.
Thanks in advance,
Powered by FUDForum
. Page generated in 0.01649 seconds