Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Setting Status Line.(Setting Status Line.)
Setting Status Line. [message #714298] Wed, 10 August 2011 05:20 Go to next message
Eclipse UserFriend
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 06:31 Go to previous messageGo to next message
Eclipse UserFriend
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 00:48 Go to previous message
Eclipse UserFriend
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: Wed Jul 23 08:05:11 EDT 2025

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

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

Back to the top