Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Problem with a Job blocking save and build operations
Problem with a Job blocking save and build operations [message #997638] Tue, 08 January 2013 14:22
Mikael Petterson is currently offline Mikael Petterson
Messages: 152
Registered: July 2009
Senior Member
Hi,

When I run the following job it blocks operations like save and build.
Since it is a long running process that does not change workspace I would like to avoid this block.

I thought that this operation ( no gui) would run in the background without blocking other operations since it has nothing to do with build project and save file.

Any ideas?

br,

//mike

Job job = new Job("My job") { //$NON-NLS-1$
				

				@Override
				protected IStatus run(IProgressMonitor monitor) {
					try {
						collector.collectElements(monitor);
					} finally {
						synchronized (lock) {
							refresh = false;
						}
					}
					return Status.OK_STATUS;
				}
			};
			job.setPriority(Job.LONG);
			job.schedule();


Previous Topic:highlighting a text of a remote file opened in editor
Next Topic:"Upgrade" a Helios based Product + IDE to 3.8.2 Juno SR2?
Goto Forum:
  


Current Time: Mon Sep 22 16:18:47 GMT 2014

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

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