|taking control of the StatusLine [message #670101]
||Thu, 12 May 2011 16:18
| Carlo Salinari
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,
Powered by FUDForum
. Page generated in 0.16319 seconds