Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Accessing status line contribution items
Accessing status line contribution items [message #448290] Thu, 20 April 2006 15:36
Torsten Beuck is currently offline Torsten BeuckFriend
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
Previous Topic:ArrayIndexOutOfBoundExceptions and Dynamic Help
Next Topic:How to set minimal view height ?
Goto Forum:
  


Current Time: Wed Nov 13 22:23:31 GMT 2024

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

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

Back to the top