Skip to main content


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 PettersonFriend
Messages: 158
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: Fri Apr 19 13:10:32 GMT 2024

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

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

Back to the top