Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher Gerking2018-08-22 10:44:34 +0000
committerEd Willink2019-02-27 09:54:25 +0000
commita6dd5b0cd7cb4895922bd5d1251a9cf6b989c269 (patch)
tree760fa31e676216a1f38c5f59dffde11979edc22d /plugins/org.eclipse.m2m.qvt.oml.common/src/org/eclipse/m2m/internal/qvt/oml/common/launch/SafeRunner.java
parentf9beafc7daf83facad76f30c4b9f6069074b74a3 (diff)
downloadorg.eclipse.qvto-a6dd5b0cd7cb4895922bd5d1251a9cf6b989c269.tar.gz
org.eclipse.qvto-a6dd5b0cd7cb4895922bd5d1251a9cf6b989c269.tar.xz
org.eclipse.qvto-a6dd5b0cd7cb4895922bd5d1251a9cf6b989c269.zip
[537609] Ensure proper IProcess termination, deprecating ShallowProcess
Diffstat (limited to 'plugins/org.eclipse.m2m.qvt.oml.common/src/org/eclipse/m2m/internal/qvt/oml/common/launch/SafeRunner.java')
-rw-r--r--plugins/org.eclipse.m2m.qvt.oml.common/src/org/eclipse/m2m/internal/qvt/oml/common/launch/SafeRunner.java47
1 files changed, 24 insertions, 23 deletions
diff --git a/plugins/org.eclipse.m2m.qvt.oml.common/src/org/eclipse/m2m/internal/qvt/oml/common/launch/SafeRunner.java b/plugins/org.eclipse.m2m.qvt.oml.common/src/org/eclipse/m2m/internal/qvt/oml/common/launch/SafeRunner.java
index b6a7b3ddc..e5c764985 100644
--- a/plugins/org.eclipse.m2m.qvt.oml.common/src/org/eclipse/m2m/internal/qvt/oml/common/launch/SafeRunner.java
+++ b/plugins/org.eclipse.m2m.qvt.oml.common/src/org/eclipse/m2m/internal/qvt/oml/common/launch/SafeRunner.java
@@ -1,38 +1,39 @@
/*******************************************************************************
- * Copyright (c) 2007, 2018 Borland Software Corporation and others.
- *
+ * Copyright (c) 2007, 2019 Borland Software Corporation and others.
+ *
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v2.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v20.html
- *
+ *
* Contributors:
* Borland Software Corporation - initial API and implementation
+ * Christopher Gerking - bug 537609
*******************************************************************************/
package org.eclipse.m2m.internal.qvt.oml.common.launch;
import org.eclipse.m2m.internal.qvt.oml.common.launch.BaseProcess.IRunnable;
-
+@Deprecated
public class SafeRunner {
- public static interface IRunner {
- public void run(BaseProcess.IRunnable r) throws Exception;
- }
-
- public static BaseProcess.IRunnable getSafeRunnable(final BaseProcess.IRunnable r) {
- final IRunner runner = SameThreadRunner.INSTANCE;
- return new BaseProcess.IRunnable() {
- public void run() throws Exception {
- runner.run(r);
- }
- };
- }
+ public static interface IRunner {
+ public void run(BaseProcess.IRunnable r) throws Exception;
+ }
+
+ public static BaseProcess.IRunnable getSafeRunnable(final BaseProcess.IRunnable r) {
+ final IRunner runner = SameThreadRunner.INSTANCE;
+ return new BaseProcess.IRunnable() {
+ public void run() throws Exception {
+ runner.run(r);
+ }
+ };
+ }
+
+ static class SameThreadRunner implements IRunner {
+ public void run(IRunnable r) throws Exception {
+ r.run();
+ }
- static class SameThreadRunner implements IRunner {
- public void run(IRunnable r) throws Exception {
- r.run();
- }
-
- static IRunner INSTANCE = new SameThreadRunner();
- }
+ static IRunner INSTANCE = new SameThreadRunner();
+ }
} \ No newline at end of file

Back to the top