Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Setting Status Line.(Setting Status Line.)
Setting Status Line. [message #714298] Wed, 10 August 2011 09:20 Go to next message
uday kiran janaswamy is currently offline uday kiran janaswamyFriend
Messages: 4
Registered: August 2011
Junior Member
Hi all,


I am having a Menu which contains some menuItems. Now my requirement is
when i select any one the menu item then it has to set the status line as
the current selected Text in Status Line.

//==========================================================================
In ApplicationWorkbenchWindowAdvisor Class i have modified this code.

public void preWindowOpen(){
...
...
...

configurer.setShowStatusLine(true);
}


public void postWindowOpen()
{
IStatusLineManager statusline = getWindowConfigurer()
.getActionBarConfigurer().getStatusLineManager();
statusline.setMessage(null, "Status line is ready");
}

Now when the RCP is been Run then in Status Line i am getting a String as
"Status line is ready"
//==========================================================================

Now my requirement is

i am having a Menu with some MenuItems in that.
When i select any one MenuItem then Accordingly i have to change my
StatusLine.

Thanks,
uday.



Re: Setting Status Line. [message #714711 is a reply to message #714298] Thu, 11 August 2011 10:31 Go to previous messageGo to next message
Alexandra Niculai is currently offline Alexandra NiculaiFriend
Messages: 84
Registered: July 2009
Member
Hi,

You could do that in the implementation of the command represented by your menu. You can get the status line also from the site of a view, and then set the text to something else.

IStatusLineManager statusLine = getViewSite().getActionBars()
						.getStatusLineManager();
Re: Setting Status Line. [message #715009 is a reply to message #714711] Fri, 12 August 2011 04:48 Go to previous message
uday kiran janaswamy is currently offline uday kiran janaswamyFriend
Messages: 4
Registered: August 2011
Junior Member
Alexandra Niculai,

Now i can do it. Thankyou.
Previous Topic:CommonNavigator: allowing the selection of one element only
Next Topic:Relative paths in a Browser not working in RCP app
Goto Forum:
  


Current Time: Fri Dec 19 18:30:12 GMT 2014

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

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