plugin/src/com/carrotgarden/eclipse/space/util/JobUtil.java
/**
	 * Join a job (wait for it to complete). If the job is null, the method
	 * returns immediately. (This assumes that things returning jobs to join,
	 * may, on occasion, return null if there's was nothing to do and so there
	 * is nothing to wair for).
	 */
Join a job (wait for it to complete). If the job is null, the method
returns immediately. (This assumes that things returning jobs to join,
may, on occasion, return null if there's was nothing to do and so there
is nothing to wair for).
Join a job ( wait for it to complete ) . If the job is null the method returns immediately . ( This assumes that things returning jobs to join may on occasion return null if there ' s was nothing to do and so there is nothing to wair for ) .
public static void join(final Job job) {
		if (job != null) {
			boolean done = false;
			do {
				try {
					job.join();
					done = true;
				} catch (final InterruptedException e) {
				}
			} while (!done);
		}
	}
public static void join ( final Job job ) { if ( job != null ) { boolean done = false ; do { try { job . join ( ) ; done = true ; } catch ( final InterruptedException e ) { } } while ( ! done ) ; } }
Join a job (wait for it to complete).
Join a job ( wait for it to complete ) .