Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Arthorne2014-03-03 15:12:14 +0000
committerJohn Arthorne2014-03-03 15:13:46 +0000
commit1b0c291e09ce7c3220169085bbeecad8dd73e358 (patch)
tree4ca3f0c04caf205f97e5ef9862becf8377f691db
parent0ded8ebc0f4e94f0bc6c3d1b6a3de1d8699415e4 (diff)
downloadeclipse.platform.runtime-1b0c291e09ce7c3220169085bbeecad8dd73e358.tar.gz
eclipse.platform.runtime-1b0c291e09ce7c3220169085bbeecad8dd73e358.tar.xz
eclipse.platform.runtime-1b0c291e09ce7c3220169085bbeecad8dd73e358.zip
-rw-r--r--bundles/org.eclipse.core.jobs/src/org/eclipse/core/runtime/jobs/Job.java7
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);

Back to the top