Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Finish long running operations by triggered server update
Finish long running operations by triggered server update [message #824610] Mon, 19 March 2012 21:43 Go to next message
Eclipse User
Hi @all,

i have to visualize (with an progress indicator rsp. a progress monitor)
some long running operations in my rcp application. The problem is the
following: I am starting a long running operation by calling an EJB
(server-side method). A progress indicator should be shown to the user.
This EJB-call triggers another thread on the server-side. After a couple
of time i get in update to the rcp application (in a seperate thread).
Now I want to remove the progress indication.

What kind of combinations of JobManager, Job, IProgressMonitor do I need
to achieve my goals. What would be a good solution. Please give me some
hints.

Thx,
Georg
Re: Finish long running operations by triggered server update [message #845863 is a reply to message #824610] Sun, 15 April 2012 13:43 Go to previous message
Wim Jongman is currently offline Wim Jongman
Messages: 418
Registered: July 2009
Senior Member
Hi Georg,

In the jobs run method, be sure to periodically check the cancel flag and
some other flag that you set from the outside.

http://www.eclipse.org/articles/Article-Concurrency/jobs-api.html

Regards,

Wim


> Hi @all,
>
> i have to visualize (with an progress indicator rsp. a progress monitor)
> some long running operations in my rcp application. The problem is the
> following: I am starting a long running operation by calling an EJB
> (server-side method). A progress indicator should be shown to the user.
> This EJB-call triggers another thread on the server-side. After a couple
> of time i get in update to the rcp application (in a seperate thread).
> Now I want to remove the progress indication.
>
> What kind of combinations of JobManager, Job, IProgressMonitor do I need
> to achieve my goals. What would be a good solution. Please give me some
> hints.
>
> Thx,
> Georg
Previous Topic:Creating Features and Plugins in a RCP-App
Next Topic:Updating only visible rows
Goto Forum:
  


Current Time: Thu Oct 02 16:45:41 GMT 2014

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

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