Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Status Line -
Status Line - [message #448330] Thu, 20 April 2006 17:26 Go to next message
Eclipse UserFriend
I want to show a message on status line while I am busy getting data. I
am using the code below.
bars = getViewSite().getActionBars();
statusLine = bars.getStatusLineManager();
statusLine.setMessage("Getting Applications...");

BusyIndicator.showWhile(this.getSite().getShell().getDisplay (), new
Runnable(){
public void run(){
applicationArr =
ApplicationClient.getApplications(txtSearchPartNum.getText() .trim(),
categoryFormat);
}
});

I want to show "Getting Applications..." on status line. However with
above the "Getting Applications..." does not show on Status line - it
shows after BusyIndicator has done running- how do I show at the same
time?

I would appreciate any answers.

Dhiresh
Re: Status Line - [message #448332 is a reply to message #448330] Thu, 20 April 2006 18:13 Go to previous message
Eclipse UserFriend
You are blocking the display thread with your getApplications() call,
which prevents the display from being updated.

Consider putting your getApplications() in another thread, or running it
in a Display.asyncExec(). Alternatively, consider using the Jobs mechanism.

Francis

Dhiresh wrote:
> I want to show a message on status line while I am busy getting data. I
> am using the code below.
> bars = getViewSite().getActionBars();
> statusLine = bars.getStatusLineManager();
> statusLine.setMessage("Getting Applications...");
>
> BusyIndicator.showWhile(this.getSite().getShell().getDisplay (), new
> Runnable(){
> public void run(){
> applicationArr =
> ApplicationClient.getApplications(txtSearchPartNum.getText() .trim(),
> categoryFormat);
> }
> });
>
> I want to show "Getting Applications..." on status line. However with
> above the "Getting Applications..." does not show on Status line - it
> shows after BusyIndicator has done running- how do I show at the same
> time?
>
> I would appreciate any answers.
>
> Dhiresh
>
Previous Topic:Continuous integration build
Next Topic:Two selection providers on a same view
Goto Forum:
  


Current Time: Mon Jul 07 22:57:44 EDT 2025

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

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

Back to the top