plugin/src/com/carrotgarden/eclipse/space/util/JobUtil.java
/**
	 * Create a scheduling rule that conflicts only with itself and only
	 * contains itself. GradleRunnables that want to have a 'light' impact on
	 * blocking other jobs but still some guarantee that they won't trample over
	 * other things that require access to some internal shared resource that
	 * only they can access should use this rule to protect the resource.
	 */
Create a scheduling rule that conflicts only with itself and only
contains itself. GradleRunnables that want to have a 'light' impact on
blocking other jobs but still some guarantee that they won't trample over
other things that require access to some internal shared resource that
only they can access should use this rule to protect the resource.
Create a scheduling rule that conflicts only with itself and only contains itself . GradleRunnables that want to have a ' light ' impact on blocking other jobs but still some guarantee that they won ' t trample over other things that require access to some internal shared resource that only they can access should use this rule to protect the resource .
public static ISchedulingRule lightRule(final String name) {
		return new ISchedulingRule() {
			@Override
			public boolean contains(final ISchedulingRule rule) {
				return rule == this;
			}
			@Override
			public boolean isConflicting(final ISchedulingRule rule) {
				return rule == this || rule.contains(this);
			}
			@Override
			public String toString() {
				return name;
			};
		};
	}
public static ISchedulingRule lightRule ( final String name ) { return new ISchedulingRule ( ) { @ Override public boolean contains ( final ISchedulingRule rule ) { return rule == this ; } @ Override public boolean isConflicting ( final ISchedulingRule rule ) { return rule == this || rule . contains ( this ) ; } @ Override public String toString ( ) { return name ; } ; } ; }
Create a scheduling rule that conflicts only with itself and only
 contains itself.
Create a scheduling rule that conflicts only with itself and only contains itself .