diff options
author | John Arthorne | 2014-03-03 15:12:14 +0000 |
---|---|---|
committer | John Arthorne | 2014-03-03 15:13:46 +0000 |
commit | 1b0c291e09ce7c3220169085bbeecad8dd73e358 (patch) | |
tree | 4ca3f0c04caf205f97e5ef9862becf8377f691db | |
parent | 0ded8ebc0f4e94f0bc6c3d1b6a3de1d8699415e4 (diff) | |
download | eclipse.platform.runtime-1b0c291e09ce7c3220169085bbeecad8dd73e358.tar.gz eclipse.platform.runtime-1b0c291e09ce7c3220169085bbeecad8dd73e358.tar.xz eclipse.platform.runtime-1b0c291e09ce7c3220169085bbeecad8dd73e358.zip |
Bug 421972 - make new create method staticI20140304-2000I20140304-0800I20140303-2000I20140303-1130
-rw-r--r-- | bundles/org.eclipse.core.jobs/src/org/eclipse/core/runtime/jobs/Job.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/bundles/org.eclipse.core.jobs/src/org/eclipse/core/runtime/jobs/Job.java b/bundles/org.eclipse.core.jobs/src/org/eclipse/core/runtime/jobs/Job.java index ddccf2a06..7bc1b6cd7 100644 --- a/bundles/org.eclipse.core.jobs/src/org/eclipse/core/runtime/jobs/Job.java +++ b/bundles/org.eclipse.core.jobs/src/org/eclipse/core/runtime/jobs/Job.java @@ -142,15 +142,16 @@ public abstract class Job extends InternalJob implements IAdaptable { } /** - * Creates a new Job that will executed the provided function - * when run. + * Creates a new Job that will execute the provided function + * when it runs. * * @param name The name of the job * @param function The function to execute * @return A job that encapsulates the provided function + * @see IJobFunction * @since 3.6 */ - public Job create(String name, final IJobFunction function) { + public static Job create(String name, final IJobFunction function) { return new Job(name) { protected IStatus run(IProgressMonitor monitor) { return function.run(monitor); |