Problem with a Job blocking save and build operations [message #997638] |
Tue, 08 January 2013 14:22 |
Mikael Petterson 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();
|
|
|
Powered by
FUDForum. Page generated in 0.02317 seconds