diff options
author | Ed Willink | 2015-07-12 13:29:49 +0000 |
---|---|---|
committer | Ed Willink | 2015-07-12 13:29:49 +0000 |
commit | 2d9e7a3f0a407cb9da247a3a849842beadc4630a (patch) | |
tree | 954ed31de50f6a8813b9c8fdfe504d81df3bdcd6 | |
parent | f386e1cb6aff5a3eb8fe5e41fccb0519f027365f (diff) | |
download | org.eclipse.qvtd-2d9e7a3f0a407cb9da247a3a849842beadc4630a.tar.gz org.eclipse.qvtd-2d9e7a3f0a407cb9da247a3a849842beadc4630a.tar.xz org.eclipse.qvtd-2d9e7a3f0a407cb9da247a3a849842beadc4630a.zip |
[397429] Eliminate ...cs2as.runtime
11 files changed, 1 insertions, 180 deletions
diff --git a/plugins/org.eclipse.qvtd.cs2as.compiler/META-INF/MANIFEST.MF b/plugins/org.eclipse.qvtd.cs2as.compiler/META-INF/MANIFEST.MF index 0b9b26928..6ac821d25 100644 --- a/plugins/org.eclipse.qvtd.cs2as.compiler/META-INF/MANIFEST.MF +++ b/plugins/org.eclipse.qvtd.cs2as.compiler/META-INF/MANIFEST.MF @@ -15,8 +15,7 @@ Require-Bundle: org.eclipse.ocl.xtext.completeocl;bundle-version="[1.0.0,1.1.0)" org.eclipse.ocl.examples.codegen;bundle-version="[2.1.0,2.2.0)", org.eclipse.qvtd.xtext.qvtimperative;bundle-version="[0.13.0,0.14.0)", org.eclipse.qvtd.compiler;bundle-version="[0.13.0,0.14.0)", - org.eclipse.qvtd.codegen;bundle-version="[0.13.0,0.14.0)", - org.eclipse.qvtd.cs2as.runtime;bundle-version="[0.13.0,0.14.0)";visibility:=reexport + org.eclipse.qvtd.codegen;bundle-version="[0.13.0,0.14.0)" Bundle-ActivationPolicy: lazy Bundle-RequiredExecutionEnvironment: JavaSE-1.7 Import-Package: org.apache.log4j diff --git a/plugins/org.eclipse.qvtd.cs2as.runtime/.classpath b/plugins/org.eclipse.qvtd.cs2as.runtime/.classpath deleted file mode 100644 index 098194ca4..000000000 --- a/plugins/org.eclipse.qvtd.cs2as.runtime/.classpath +++ /dev/null @@ -1,7 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<classpath> - <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7"/> - <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/> - <classpathentry kind="src" path="src"/> - <classpathentry kind="output" path="bin"/> -</classpath> diff --git a/plugins/org.eclipse.qvtd.cs2as.runtime/.gitignore b/plugins/org.eclipse.qvtd.cs2as.runtime/.gitignore deleted file mode 100644 index ae3c17260..000000000 --- a/plugins/org.eclipse.qvtd.cs2as.runtime/.gitignore +++ /dev/null @@ -1 +0,0 @@ -/bin/ diff --git a/plugins/org.eclipse.qvtd.cs2as.runtime/.settings/org.eclipse.jdt.core.prefs b/plugins/org.eclipse.qvtd.cs2as.runtime/.settings/org.eclipse.jdt.core.prefs deleted file mode 100644 index 7341ab168..000000000 --- a/plugins/org.eclipse.qvtd.cs2as.runtime/.settings/org.eclipse.jdt.core.prefs +++ /dev/null @@ -1,11 +0,0 @@ -eclipse.preferences.version=1 -org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled -org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7 -org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve -org.eclipse.jdt.core.compiler.compliance=1.7 -org.eclipse.jdt.core.compiler.debug.lineNumber=generate -org.eclipse.jdt.core.compiler.debug.localVariable=generate -org.eclipse.jdt.core.compiler.debug.sourceFile=generate -org.eclipse.jdt.core.compiler.problem.assertIdentifier=error -org.eclipse.jdt.core.compiler.problem.enumIdentifier=error -org.eclipse.jdt.core.compiler.source=1.7 diff --git a/plugins/org.eclipse.qvtd.cs2as.runtime/META-INF/MANIFEST.MF b/plugins/org.eclipse.qvtd.cs2as.runtime/META-INF/MANIFEST.MF deleted file mode 100644 index bf027b93a..000000000 --- a/plugins/org.eclipse.qvtd.cs2as.runtime/META-INF/MANIFEST.MF +++ /dev/null @@ -1,8 +0,0 @@ -Manifest-Version: 1.0 -Bundle-ManifestVersion: 2 -Bundle-Name: Runtime -Bundle-SymbolicName: org.eclipse.qvtd.cs2as.runtime -Bundle-Version: 0.13.0.qualifier -Export-Package: org.eclipse.qvtd.cs2as.runtime -Require-Bundle: org.eclipse.qvtd.pivot.qvtimperative;bundle-version="[0.13.0,0.14.0)";visibility:=reexport -Bundle-RequiredExecutionEnvironment: JavaSE-1.7 diff --git a/plugins/org.eclipse.qvtd.cs2as.runtime/build.properties b/plugins/org.eclipse.qvtd.cs2as.runtime/build.properties deleted file mode 100644 index 59121808a..000000000 --- a/plugins/org.eclipse.qvtd.cs2as.runtime/build.properties +++ /dev/null @@ -1,14 +0,0 @@ -############################################################################### -# Copyright (c) 2015 Willink Transformations and others. -# All rights reserved. This program and the accompanying materials -# 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: -# E.D.Willink - initial API and implementation -############################################################################### -source.. = src/ -bin.includes = META-INF/,\ - . -additional.bundles = org.eclipse.ocl.jdt.annotation7 diff --git a/plugins/org.eclipse.qvtd.cs2as.runtime/src/org/eclipse/qvtd/cs2as/runtime/CS2ASDiagnostic.java b/plugins/org.eclipse.qvtd.cs2as.runtime/src/org/eclipse/qvtd/cs2as/runtime/CS2ASDiagnostic.java deleted file mode 100644 index 5850940f4..000000000 --- a/plugins/org.eclipse.qvtd.cs2as.runtime/src/org/eclipse/qvtd/cs2as/runtime/CS2ASDiagnostic.java +++ /dev/null @@ -1,40 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015 Willink Transformations and others. - * All rights reserved. This program and the accompanying materials - * 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: - * E.D.Willink - initial API and implementation - *******************************************************************************/ -package org.eclipse.qvtd.cs2as.runtime; - -import org.eclipse.emf.common.util.BasicDiagnostic; -import org.eclipse.emf.common.util.Diagnostic; -import org.eclipse.emf.ecore.EObject; - -public class CS2ASDiagnostic<CS extends EObject> extends BasicDiagnostic - implements EObjectDiagnostic { - - private CS csObject; - - public CS2ASDiagnostic(CS csObject, int severity, String source, int code, String message) { - super(severity, source, code, message, null); - this.csObject = csObject; - } - - /** - * A simple (no source, code) CS2AS error diagnostic - * @param csObject the source CSObject - * @param message the erroneus situation - */ - public CS2ASDiagnostic(CS csObject, String message) { - this(csObject, Diagnostic.ERROR, null, 0, message); - } - - @Override - public CS getEObject() { - return csObject; - } -} diff --git a/plugins/org.eclipse.qvtd.cs2as.runtime/src/org/eclipse/qvtd/cs2as/runtime/CS2ASException.java b/plugins/org.eclipse.qvtd.cs2as.runtime/src/org/eclipse/qvtd/cs2as/runtime/CS2ASException.java deleted file mode 100644 index 2b8b6b0a6..000000000 --- a/plugins/org.eclipse.qvtd.cs2as.runtime/src/org/eclipse/qvtd/cs2as/runtime/CS2ASException.java +++ /dev/null @@ -1,31 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015 Willink Transformations and others. - * All rights reserved. This program and the accompanying materials - * 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: - * E.D.Willink - initial API and implementation - *******************************************************************************/ -package org.eclipse.qvtd.cs2as.runtime; - -import org.eclipse.emf.ecore.EObject; -import org.eclipse.jdt.annotation.NonNull; -import org.eclipse.ocl.pivot.values.InvalidValueException; - -public class CS2ASException extends InvalidValueException -{ - private static final long serialVersionUID = 1L; - - protected final @NonNull EObject csObject; - - public CS2ASException(@NonNull EObject csObject, @NonNull String message) { - super(message); - this.csObject = csObject; - } - - public @NonNull EObject getCSObject() { - return csObject; - } -} diff --git a/plugins/org.eclipse.qvtd.cs2as.runtime/src/org/eclipse/qvtd/cs2as/runtime/EObjectDiagnostic.java b/plugins/org.eclipse.qvtd.cs2as.runtime/src/org/eclipse/qvtd/cs2as/runtime/EObjectDiagnostic.java deleted file mode 100644 index 5a26a7a55..000000000 --- a/plugins/org.eclipse.qvtd.cs2as.runtime/src/org/eclipse/qvtd/cs2as/runtime/EObjectDiagnostic.java +++ /dev/null @@ -1,22 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015 Willink Transformations and others. - * All rights reserved. This program and the accompanying materials - * 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: - * E.D.Willink - initial API and implementation - *******************************************************************************/ -package org.eclipse.qvtd.cs2as.runtime; - -import org.eclipse.emf.common.util.Diagnostic; -import org.eclipse.emf.ecore.EObject; - -public interface EObjectDiagnostic extends Diagnostic { - - /** - * @return the {@link EObject} on which this diagnostic applies - */ - EObject getEObject(); -} diff --git a/plugins/org.eclipse.qvtd.cs2as.runtime/src/org/eclipse/qvtd/cs2as/runtime/QVTiTxHelper.java b/plugins/org.eclipse.qvtd.cs2as.runtime/src/org/eclipse/qvtd/cs2as/runtime/QVTiTxHelper.java deleted file mode 100644 index aabb86c9e..000000000 --- a/plugins/org.eclipse.qvtd.cs2as.runtime/src/org/eclipse/qvtd/cs2as/runtime/QVTiTxHelper.java +++ /dev/null @@ -1,43 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015 Willink Transformations and others. - * All rights reserved. This program and the accompanying materials - * 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: - * E.D.Willink - initial API and implementation - *******************************************************************************/ -package org.eclipse.qvtd.cs2as.runtime; - -import org.eclipse.jdt.annotation.NonNull; -import org.eclipse.ocl.pivot.evaluation.tx.TransformationExecutor; -import org.eclipse.ocl.pivot.evaluation.tx.Transformer; -import org.eclipse.qvtd.pivot.qvtbase.Transformation; -import org.eclipse.qvtd.pivot.qvtimperative.evaluation.BasicQVTiExecutor; -import org.eclipse.qvtd.pivot.qvtimperative.evaluation.QVTiEnvironmentFactory; -import org.eclipse.qvtd.pivot.qvtimperative.evaluation.QVTiTransformationExecutor; -import org.eclipse.qvtd.pivot.qvtimperative.utilities.QVTimperative; - -public class QVTiTxHelper { - - final private QVTimperative qvti; - - public QVTiTxHelper(@NonNull QVTimperative qvti) { - this.qvti = qvti; - } - - private @NonNull QVTiEnvironmentFactory getEnvironmentFactory() { - return (QVTiEnvironmentFactory) qvti.getEnvironmentFactory(); - } - - public @NonNull BasicQVTiExecutor createExecutor(Transformation transformation) { - return new BasicQVTiExecutor(getEnvironmentFactory(), transformation); - } - - // FIXME why do we need this ? - public @NonNull TransformationExecutor createTxEvaluator(Class<? extends Transformer> txClass) throws ReflectiveOperationException { - return new QVTiTransformationExecutor(getEnvironmentFactory(), txClass); - } - -} diff --git a/plugins/org.eclipse.qvtd.cs2as.runtime/src/org/eclipse/qvtd/cs2as/runtime/README.txt b/plugins/org.eclipse.qvtd.cs2as.runtime/src/org/eclipse/qvtd/cs2as/runtime/README.txt deleted file mode 100644 index e27d5a9aa..000000000 --- a/plugins/org.eclipse.qvtd.cs2as.runtime/src/org/eclipse/qvtd/cs2as/runtime/README.txt +++ /dev/null @@ -1 +0,0 @@ -These are common classes which should belong to QVTi plugins
\ No newline at end of file |