diff options
author | Marc-Andre Laperle | 2017-05-08 02:17:59 +0000 |
---|---|---|
committer | Lars Vogel | 2017-07-27 10:24:57 +0000 |
commit | 6ae26509a84775ed78ec368d707ba67f741f8a24 (patch) | |
tree | 6d90a8be94607e9ed102cd534f9ae34ab460ed04 | |
parent | cdf67ef72195e7895c7ecc4b94cece346dca885c (diff) | |
download | eclipse.platform.runtime-6ae26509a84775ed78ec368d707ba67f741f8a24.tar.gz eclipse.platform.runtime-6ae26509a84775ed78ec368d707ba67f741f8a24.tar.xz eclipse.platform.runtime-6ae26509a84775ed78ec368d707ba67f741f8a24.zip |
Bug 516292 - Job.createSystem should have a version with IJobFunctionS4_8_0_M1I20170815-2000I20170815-0035I20170814-2000I20170814-0635I20170814-0300I20170813-2000I20170812-1500I20170811-2000I20170810-2000I20170809-2000I20170808-2000I20170807-2000I20170806-2000I20170805-1500I20170804-2000I20170802-2000I20170802-0800I20170801-2000I20170801-0800I20170731-2000I20170731-0800I20170730-2000I20170729-2000I20170728-2000
Change-Id: I7bbe50563a934d8f626d9f2c73b2b8bce282aa6c
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
-rw-r--r-- | bundles/org.eclipse.core.jobs/META-INF/MANIFEST.MF | 2 | ||||
-rw-r--r-- | bundles/org.eclipse.core.jobs/pom.xml | 2 | ||||
-rw-r--r-- | bundles/org.eclipse.core.jobs/src/org/eclipse/core/runtime/jobs/Job.java | 19 |
3 files changed, 21 insertions, 2 deletions
diff --git a/bundles/org.eclipse.core.jobs/META-INF/MANIFEST.MF b/bundles/org.eclipse.core.jobs/META-INF/MANIFEST.MF index f080b5d5b..d05cfe828 100644 --- a/bundles/org.eclipse.core.jobs/META-INF/MANIFEST.MF +++ b/bundles/org.eclipse.core.jobs/META-INF/MANIFEST.MF @@ -2,7 +2,7 @@ Manifest-Version: 1.0 Bundle-ManifestVersion: 2 Bundle-Name: %pluginName Bundle-SymbolicName: org.eclipse.core.jobs; singleton:=true -Bundle-Version: 3.9.200.qualifier +Bundle-Version: 3.10.0.qualifier Bundle-Vendor: %providerName Bundle-Localization: plugin Export-Package: org.eclipse.core.internal.jobs;x-internal:=true, diff --git a/bundles/org.eclipse.core.jobs/pom.xml b/bundles/org.eclipse.core.jobs/pom.xml index 52e7e6ba6..9e7402001 100644 --- a/bundles/org.eclipse.core.jobs/pom.xml +++ b/bundles/org.eclipse.core.jobs/pom.xml @@ -20,7 +20,7 @@ </parent> <groupId>org.eclipse.core</groupId> <artifactId>org.eclipse.core.jobs</artifactId> - <version>3.9.200-SNAPSHOT</version> + <version>3.10.0-SNAPSHOT</version> <packaging>eclipse-plugin</packaging> <properties> <code.ignoredWarnings>-warn:-deprecation,raw,unchecked</code.ignoredWarnings> 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 1fe7077ed..e432c1e82 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 @@ -190,6 +190,25 @@ public abstract class Job extends InternalJob implements IAdaptable { } /** + * Creates a new system {@link Job} with the given name 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 + * @see Job#setSystem(boolean) + * @since 3.10 + */ + public static Job createSystem(String name, final IJobFunction function) { + Job job = create(name, function); + job.setSystem(true); + return job; + } + + /** * Creates a new system {@link Job} with the given name that will execute * the provided runnable when it runs. * |