Status Line Update [message #461650] |
Mon, 15 January 2007 10:43  |
Eclipse User |
|
|
|
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
|
|
|
|
Powered by
FUDForum. Page generated in 0.02829 seconds