Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Dialog for long running operations
Dialog for long running operations [message #671841] Thu, 19 May 2011 07:13 Go to next message
Jens  is currently offline Jens Friend
Messages: 13
Registered: March 2011
Junior Member
Hi,

how is the best way to display a dialog to show that a long running operation is in progress ?.

I have found a few solutions but, i hope there is a better way. I have found three solutions at the moment:

1. A Progressmonitor => Job API

2. Use a ProgressmonitorDialog from JFace

3. Use your own implementation

Is there any other solution ?

Furthermore, I have seen that the mouse cursor change when the request from the server needs more time. How does it work ?


Best Regards,

Jens
Re: Dialog for long running operations [message #672042 is a reply to message #671841] Thu, 19 May 2011 16:43 Go to previous messageGo to next message
Ralf Sternberg is currently offline Ralf SternbergFriend
Messages: 1313
Registered: July 2009
Senior Member

Hi Jens,

> how is the best way to display a dialog to show that a long running
> operation is in progress ?.
> I have found a few solutions but, i hope there is a better way. I have
> found three solutions at the moment:

I think that the ProgressMonitorDialog is the natural choice to display
progress in a dialog. Which features are you missing?

> Furthermore, I have seen that the mouse cursor change when the request
> from the server needs more time. How does it work ?

This is a feature of the RAP client. Lifecycle requests are supposed to
be answered immediately. If they don't return after ~500ms, the client
changes the cursor. If you see this often, this can indicate that you do
too much work in the UIThread.

There is also API in SWT to display a busy cursor: check out
BusyIndicator#showWhile( ... ).

Regards, Ralf

--
Ralf Sternberg

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: Dialog for long running operations [message #672238 is a reply to message #672042] Fri, 20 May 2011 12:29 Go to previous message
Jens  is currently offline Jens Friend
Messages: 13
Registered: March 2011
Junior Member
Hi,

thanks for the answer. I don't miss a feature in the ProgressMonitorDialog. I was only interested in the alternatives in this context.

But I think the ProgressMonitorDialog is the best solution for my problem.

Regards,

Jens
Previous Topic:CSS text-transform support for custom variants
Next Topic:AbstractThemeAdapter#getPrimaryElement
Goto Forum:
  


Current Time: Fri Apr 19 20:04:17 GMT 2024

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

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

Back to the top