Accessing status line contribution items [message #448290] |
Thu, 20 April 2006 15:36 |
Torsten Beuck Messages: 38 Registered: July 2009 |
Member |
|
|
In my RCP application I like to display several status information (current user, locale, dirty flag, ...) using the status line.
My current understanding is, that I have to overwrite the fillStatusLine method of my applications ActionBarAdvisor to add contribution items to the status line. Is this right? Has anybody some sample source for me?
And if I had created these contribution items, how do I access them from e.g. a View? I tried
IStatusLineManager slm =
getViewSite().getActionBars().getStatusLineManager();
IContributionItem item = slm.find("my item");
if (item != null) {
...
}
but the find method always returns null. What am I doing wrong?
Torsten
|
|
|
Powered by
FUDForum. Page generated in 0.03249 seconds