Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Status Line Update
Status Line Update [message #461650] Mon, 15 January 2007 10:43 Go to next message
Eclipse UserFriend
Originally posted by: ssankhua.yahoo.com

Hi

I am not able to update the status line on Caps lock key hit.

I have written a listner and a contribution item for that. But it does not update the status line. It always shows the old status line. I tried by updating it through a view -

<b>Contributor Action</b>
IViewReference [] reference = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActi vePage().getViewReferences();
reference[0].getView(true).setFocus();

<b>View</b>
public void setFocus(){
StatusLineContributor statusLineContributor = StatusLineContributor.getInstance();
getViewSite().getActionBars().getStatusLineManager().add(sta tusLineContributor);
}

Can you tell me how to update a status line dynamically.

Barnali
Re: Status Line Update [message #461676 is a reply to message #461650] Tue, 16 January 2007 02:29 Go to previous message
Eclipse UserFriend
Hi,

add the following statement in the above code

getViewSite().getActionBars().getStatusLineManager().update( )



cheers!
Previous Topic:How to use ILazyContentProvider with the Virtual table.
Next Topic:Passing filename into RCP on startup
Goto Forum:
  


Current Time: Sat Apr 26 11:12:18 EDT 2025

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

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

Back to the top