Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Contribution Item on status line still visible if status line is set invisible
Contribution Item on status line still visible if status line is set invisible [message #528376] Tue, 20 April 2010 09:45 Go to next message
Eclipse UserFriend
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 #528517 is a reply to message #528376] Tue, 20 April 2010 18:58 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

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


--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse .platform.doc.isv/guide/workbench.htm


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 Go to previous message
Eclipse UserFriend
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....
Previous Topic:Integrate external tool in Eclipse RCP
Next Topic:IFile Open Listener
Goto Forum:
  


Current Time: Thu Apr 25 12:11:36 GMT 2024

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

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

Back to the top