Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEd.Willink2013-02-02 21:03:12 +0000
committerEd.Willink2013-02-02 21:03:12 +0000
commitaad1f86fba717d7bad1889ceb24eef002aa378ce (patch)
treec56819d8f814374e2fda80eda96f571eaf827a86
parent40510f38ff669787bbd5c25986a4fc8bab25a9b9 (diff)
downloadorg.eclipse.qvtd-aad1f86fba717d7bad1889ceb24eef002aa378ce.tar.gz
org.eclipse.qvtd-aad1f86fba717d7bad1889ceb24eef002aa378ce.tar.xz
org.eclipse.qvtd-aad1f86fba717d7bad1889ceb24eef002aa378ce.zip
[unrelated] Fix undefined variable
-rw-r--r--examples/org.eclipse.qvtd.examples.qvtrelation.modelmorf/qvtrsrc/MiToSi/mitosi.qvtr8
-rw-r--r--examples/org.eclipse.qvtd.examples/buildZips.xml4
-rw-r--r--plugins/org.eclipse.qvtd.xtext.qvtrelation/src-gen/org/eclipse/qvtd/xtext/qvtrelation/services/QVTrelationGrammarAccess.java21
-rw-r--r--plugins/org.eclipse.qvtd.xtext.qvtrelation/src/org/eclipse/qvtd/xtext/qvtrelation/QVTrelation.xtext1
4 files changed, 19 insertions, 15 deletions
diff --git a/examples/org.eclipse.qvtd.examples.qvtrelation.modelmorf/qvtrsrc/MiToSi/mitosi.qvtr b/examples/org.eclipse.qvtd.examples.qvtrelation.modelmorf/qvtrsrc/MiToSi/mitosi.qvtr
index 4d100249f..4f44e7ee3 100644
--- a/examples/org.eclipse.qvtd.examples.qvtrelation.modelmorf/qvtrsrc/MiToSi/mitosi.qvtr
+++ b/examples/org.eclipse.qvtd.examples.qvtrelation.modelmorf/qvtrsrc/MiToSi/mitosi.qvtr
@@ -9,8 +9,8 @@
* TCS - initial implementation for ModelMorf
* E.D.Willink - alignment with evolved specification
*******************************************************************************/
-import umlmmmi : 'umlmmmi.emof'::umlmmmi;
-import javammsi : 'javammsi.emof'::javammsi;
+import umlmmmi : 'umlMM.emof'::umlmmmi;
+import javammsi : 'javaMM.emof'::javammsi;
transformation MiToSi(uml:umlmmmi, java:javammsi)
{
@@ -89,6 +89,7 @@ transformation MiToSi(uml:umlmmmi, java:javammsi)
csup: umlmmmi::Class;
isup: javammsi::Interface;
someI: javammsi::Interface;
+ z : javammsi::Interface;
domain uml
c:Class
@@ -107,7 +108,7 @@ transformation MiToSi(uml:umlmmmi, java:javammsi)
when
{
(RClassToInterface(csup, isup) or ClassToInterface(csup, isup));
- not ClassToClass(c, _);
+ not ClassToClass(c, z);
}
}
@@ -135,4 +136,3 @@ transformation MiToSi(uml:umlmmmi, java:javammsi)
}
}
}
-
diff --git a/examples/org.eclipse.qvtd.examples/buildZips.xml b/examples/org.eclipse.qvtd.examples/buildZips.xml
index dec8d9fe9..cce67aa53 100644
--- a/examples/org.eclipse.qvtd.examples/buildZips.xml
+++ b/examples/org.eclipse.qvtd.examples/buildZips.xml
@@ -4,8 +4,8 @@
</target>
<patternset id="qvtc.excludes" excludes="qvtcbin/**"/>
- <patternset id="qvtr.excludes" excludes="bin/** qvtrbin/** src/** .settings/** META-INF/**"/>
-
+ <patternset id="qvtr.excludes" excludes="bin/** qvtrbin/** src/** .settings/** META-INF/** .classpath build.properties about.html"/>
+
<target name="zip.examples" depends="init">
<!-- ../../examples is the prefcerred project layout
../ is the result of an Import Project Set File -->
diff --git a/plugins/org.eclipse.qvtd.xtext.qvtrelation/src-gen/org/eclipse/qvtd/xtext/qvtrelation/services/QVTrelationGrammarAccess.java b/plugins/org.eclipse.qvtd.xtext.qvtrelation/src-gen/org/eclipse/qvtd/xtext/qvtrelation/services/QVTrelationGrammarAccess.java
index fbfd60300..6af578d40 100644
--- a/plugins/org.eclipse.qvtd.xtext.qvtrelation/src-gen/org/eclipse/qvtd/xtext/qvtrelation/services/QVTrelationGrammarAccess.java
+++ b/plugins/org.eclipse.qvtd.xtext.qvtrelation/src-gen/org/eclipse/qvtd/xtext/qvtrelation/services/QVTrelationGrammarAccess.java
@@ -1527,18 +1527,20 @@ public class QVTrelationGrammarAccess extends AbstractGrammarElementFinder {
//
//UnrestrictedName returns ecore::EString:
//
- // EssentialOCLUnrestrictedName | "checkonly" | "default_values" | "domain" | "enforce" | "extends" | "implementedby" |
+ // EssentialOCLUnrestrictedName //| '_'
+ // | "checkonly" | "default_values" | "domain" | "enforce" | "extends" |
//
- // "import" | "library" | "key" | "overrides" | "primitive" | "query" | "relation" | "replace" | "top" |
+ // "implementedby" | "import" | "library" | "key" | "overrides" | "primitive" | "query" | "relation" | "replace" | "top"
//
- // "transformation" | "when" | "where";
+ // | "transformation" | "when" | "where";
public ParserRule getRule() { return rule; }
- //EssentialOCLUnrestrictedName | "checkonly" | "default_values" | "domain" | "enforce" | "extends" | "implementedby" |
+ //EssentialOCLUnrestrictedName //| '_'
+ // | "checkonly" | "default_values" | "domain" | "enforce" | "extends" |
//
- //"import" | "library" | "key" | "overrides" | "primitive" | "query" | "relation" | "replace" | "top" | "transformation"
+ //"implementedby" | "import" | "library" | "key" | "overrides" | "primitive" | "query" | "relation" | "replace" | "top"
//
- //| "when" | "where"
+ //| "transformation" | "when" | "where"
public Alternatives getAlternatives() { return cAlternatives; }
//EssentialOCLUnrestrictedName
@@ -2013,11 +2015,12 @@ public class QVTrelationGrammarAccess extends AbstractGrammarElementFinder {
//
//UnrestrictedName returns ecore::EString:
//
- // EssentialOCLUnrestrictedName | "checkonly" | "default_values" | "domain" | "enforce" | "extends" | "implementedby" |
+ // EssentialOCLUnrestrictedName //| '_'
+ // | "checkonly" | "default_values" | "domain" | "enforce" | "extends" |
//
- // "import" | "library" | "key" | "overrides" | "primitive" | "query" | "relation" | "replace" | "top" |
+ // "implementedby" | "import" | "library" | "key" | "overrides" | "primitive" | "query" | "relation" | "replace" | "top"
//
- // "transformation" | "when" | "where";
+ // | "transformation" | "when" | "where";
public UnrestrictedNameElements getUnrestrictedNameAccess() {
return (pUnrestrictedName != null) ? pUnrestrictedName : (pUnrestrictedName = new UnrestrictedNameElements());
}
diff --git a/plugins/org.eclipse.qvtd.xtext.qvtrelation/src/org/eclipse/qvtd/xtext/qvtrelation/QVTrelation.xtext b/plugins/org.eclipse.qvtd.xtext.qvtrelation/src/org/eclipse/qvtd/xtext/qvtrelation/QVTrelation.xtext
index 0fe539201..4ccf92e91 100644
--- a/plugins/org.eclipse.qvtd.xtext.qvtrelation/src/org/eclipse/qvtd/xtext/qvtrelation/QVTrelation.xtext
+++ b/plugins/org.eclipse.qvtd.xtext.qvtrelation/src/org/eclipse/qvtd/xtext/qvtrelation/QVTrelation.xtext
@@ -128,6 +128,7 @@ TypedRefCS returns base::TypedRefCS:
UnrestrictedName returns ecore::EString:
EssentialOCLUnrestrictedName
+//| '_'
| 'checkonly'
| 'default_values'
| 'domain'

Back to the top