Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » taking control of the StatusLine
taking control of the StatusLine [message #670101] Thu, 12 May 2011 16:18 Go to next message
Carlo Salinari is currently offline Carlo SalinariFriend
Messages: 66
Registered: October 2010

in my rcp app I have to put some controls (label, text input, buttons)
into the status line.

I'm a bit confused about how the whole process should work.

In the "Platform Plug-in Developer Guide", I see a declarative approach:
1. define a menuContribution with uri toolbar:org.eclipse.ui.trim.status
2. add a custom control contribution to the toolbar

This is clear, but after having done that:
1. how do I control the position of the toolbar within the status line
(lef, middle, right)?
2. where do I set up the listeners to status changes, e.g. of a text input?
3. how do I reference and modify the status of, say, a label?
4. won't the StatusLineManager get upset if I take direct control?

In the book "Eclipse Rich Client Platform" (2nd edition, chap 6.2 and
17.7) I see an entirely different approach taken.

They suggest to use ActionBarAdvisor.fillStatusLine and
IStatusManager.appendToGroup, which partially resolves the positioning
problem (question 1.), but leaves all the others open, besides looking

Sorry for the long message but I really need to understand this well,
since my app relies heavily on status-line interactivity and, as I said,
I'm confused about its right usage.

Thanks in advance,
Re: taking control of the StatusLine [message #720411 is a reply to message #670101] Tue, 30 August 2011 14:28 Go to previous message
Marco Lopes is currently offline Marco LopesFriend
Messages: 56
Registered: September 2010
Have you resolved this issue?
Previous Topic:Is it possible to have preset workbench layouts?
Next Topic:How to remove popup menus for a perspective
Goto Forum:

Current Time: Tue Oct 25 23:00:34 GMT 2016

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

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