ToolbarContributionItem Visibility Seems wrong [message #326202] |
Tue, 11 March 2008 10:14 |
Eclipse User |
|
|
|
I have an RCP application with multiple toolbars in a coolbar. I need to be
able to manage the visibility of the individual toolbars.
To my surprise, setting the visibility of the ToolbarContributionItem did
not affect the visibility of my toolbars. I then read the JavaDoc for
ToolbarContributionItem which said:
"A contribution item is visible iff its internal state is visible or the
tool bar manager contains something other than group markers and separators"
This means the toolbar would be visible even if its internal state is not
visible because one or more of its children are visible.
I worked around this by also setting the visiblity of the children, but that
is very undesireable. It seems to me the "or" should be an "and", thus
allowing us to manage the toolbar visiblity independent of the children's
visibility.
What am I missing?
|
|
|
Powered by
FUDForum. Page generated in 0.04104 seconds