Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » ToolbarContributionItem Visibility Seems wrong
ToolbarContributionItem Visibility Seems wrong [message #326202] Tue, 11 March 2008 10:14
Eclipse UserFriend
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?
Previous Topic:how get the object and create a folder under the object in the pacakage explorer
Next Topic:Changing contents of an editor
Goto Forum:
  


Current Time: Sat May 03 10:43:15 EDT 2025

Powered by FUDForum. Page generated in 0.04104 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top