Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Howto access a status line contribution
Howto access a status line contribution [message #666617] Thu, 21 April 2011 10:35 Go to next message
Eclipse UserFriend
Originally posted by: karsten.triadiary.com

Hi,

I have created a custom contribution to the statusline using an
implementation of WorkbenchWindowControlContribution. This contribution
is added using the org.eclipse.ui.menus extension point
(toolbar:org.eclipse.ui.trim.status). The contribution is shown in the
statusline.

Now I have a dialog that should change the content of the added
contribution. How can I access this contribution? The dialog might be
opened without any active editor or view. (So I can't use
getViewSite().getActionBars()...)

Any hints?

Thanks.
Karsten
Re: Howto access a status line contribution [message #666660 is a reply to message #666617] Thu, 21 April 2011 13:34 Go to previous message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

You cannot track down a specific instance of something added through
org.eclipse.ui.menus. However, have your contribution read its status
from a status manager or publish an interface that would allow it to be
looked up by your code that wants to change the status.

PW

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


Previous Topic:DND with multiple Transfer Types
Next Topic:Migrate RCP Application from Eclipse 3.3 to Eclipse 3.6
Goto Forum:
  


Current Time: Mon Nov 24 14:02:34 GMT 2014

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

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