Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » ToolbarContributionItem Visibility Seems wrong
ToolbarContributionItem Visibility Seems wrong [message #326202] Tue, 11 March 2008 14:14
Stuart Pond is currently offline Stuart PondFriend
Messages: 27
Registered: July 2009
Junior Member
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: Thu Jun 27 21:18:19 GMT 2024

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

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

Back to the top