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 Salinari
Messages: 66
Registered: October 2010
Member
Hi,

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
"old-school".

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,
Carlo
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 Lopes
Messages: 56
Registered: September 2010
Member
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 Sep 16 01:11:44 GMT 2014

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

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