Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community Forumsdynamic items in a views toolbar
https://www.eclipse.org/forums/index.php/mv/msg/241186/727501/#msg_727501
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,
Chris]]>Christian Stellwag2011-09-21T13:20:57-00:00Re: dynamic items in a views toolbar
https://www.eclipse.org/forums/index.php/mv/msg/241186/727522/#msg_727522
Charaf-Eddine SAIDI2011-09-21T13:54:11-00:00Re: dynamic items in a views toolbar
https://www.eclipse.org/forums/index.php/mv/msg/241186/727596/#msg_727596
Do you know if they delegate to setVisible(.)?]]>Christian Stellwag2011-09-21T15:35:14-00:00