Skip to main content



      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 06: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 09:34 Go to previous message
Eclipse UserFriend
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: Tue Jul 22 18:38:45 EDT 2025

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

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

Back to the top