|Re: Contribution Item on status line still visible if status line is set invisible [message #528579 is a reply to message #528517]
||Wed, 21 April 2010 07:17
Originally posted by: gemaspecial.yahoo.com.hk|
Paul Webster wrote:
> Leung Wang Hei wrote:
>> I have created a contribution item (text with one image) onto the
>> Status line with the ui.menu extension
>> When I programmatically make the status line invisible by:
> That refers specifically to the StatusManagerContribution. It won't
> effect other contributions (added by org.eclipse.ui.menus) since they
> all have their own visibleWhen clause.
> It's possible through the use of the visibleWhen and variables (or
> property testers) to make your other contribution disappear as well.
Right, I have added visibleWhen to both the toolbar and the toolbar contribution item (there is only 1 item in this toolbar) such that
visible = WorkbenchWindow.getStatusLineVisible();
No luck, the toolbar and the item is still there....
Powered by FUDForum
. Page generated in 0.02142 seconds