diff options
Diffstat (limited to 'org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/AsynchronousSchedulingRuleFactory.java')
-rw-r--r-- | org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/AsynchronousSchedulingRuleFactory.java | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/AsynchronousSchedulingRuleFactory.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/AsynchronousSchedulingRuleFactory.java index aa2ffa508..9daeff7cc 100644 --- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/AsynchronousSchedulingRuleFactory.java +++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/AsynchronousSchedulingRuleFactory.java @@ -4,7 +4,7 @@ * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html - * + * * Contributors: * IBM Corporation - initial API and implementation *******************************************************************************/ @@ -14,11 +14,11 @@ import org.eclipse.core.runtime.jobs.ISchedulingRule; /** * Scheduling rule factory for asynchronous operations. - * + * * @since 3.2 */ public class AsynchronousSchedulingRuleFactory { - + private static AsynchronousSchedulingRuleFactory fgFactory = null; /** @@ -39,11 +39,11 @@ public class AsynchronousSchedulingRuleFactory { return rule instanceof SerialRule; } } - + class SerialPerObjectRule implements ISchedulingRule { - + private Object fObject = null; - + public SerialPerObjectRule(Object lock) { fObject = lock; } @@ -67,37 +67,37 @@ public class AsynchronousSchedulingRuleFactory { } return false; } - - } - + + } + private AsynchronousSchedulingRuleFactory() {} - + public static AsynchronousSchedulingRuleFactory getDefault() { if (fgFactory == null) { fgFactory = new AsynchronousSchedulingRuleFactory(); } return fgFactory; } - + /** * Returns a scheduling rule that allows all jobs with an instance * of the rule to run one at a time. - * + * * @return scheduling rule */ public ISchedulingRule newSerialRule() { return new SerialRule(); } - + /** * Returns a scheduling rule that allows all jobs with an instance * of the rule on the same object to run one at a time. - * + * * @param lock object to serialize one * @return scheduling rule */ public ISchedulingRule newSerialPerObjectRule(Object lock) { return new SerialPerObjectRule(lock); } - + } |