Contribution Item on status line still visible if status line is set invisible [message #528376] |
Tue, 20 April 2010 09:45 |
Eclipse User |
|
|
|
Originally posted by: gemaspecial.yahoo.com.hk
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:
WorkbenchWindow.setStatusLineVisible(false);
The fast view, memory monitor is gone but my own contribution is left behind.
Do I miss something? Thanks
|
|
|
|
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 |
Eclipse User |
|
|
|
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:
>>
>> WorkbenchWindow.setStatusLineVisible(false);
>
> 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.
>
> PW
>
>
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.03019 seconds