Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdolfo SBH2016-05-20 10:09:19 -0400
committerEd Willink2016-10-22 10:15:18 -0400
commit46c4c58f3626ec8d3097d7a5cbba541799ffa20e (patch)
tree59524c51603b2b8291dcdaf54e20fa1ac539ab40 /doc/org.eclipse.qvtd.doc.miniocl.build
parente87313b34dae6f1a12e0e2c8eae1b0239f4686e8 (diff)
downloadorg.eclipse.qvtd-46c4c58f3626ec8d3097d7a5cbba541799ffa20e.tar.gz
org.eclipse.qvtd-46c4c58f3626ec8d3097d7a5cbba541799ffa20e.tar.xz
org.eclipse.qvtd-46c4c58f3626ec8d3097d7a5cbba541799ffa20e.zip
[cs2as] - MiniOCL projects: Initial content
Diffstat (limited to 'doc/org.eclipse.qvtd.doc.miniocl.build')
-rw-r--r--doc/org.eclipse.qvtd.doc.miniocl.build/.classpath7
-rw-r--r--doc/org.eclipse.qvtd.doc.miniocl.build/.gitignore2
-rw-r--r--doc/org.eclipse.qvtd.doc.miniocl.build/.project34
-rw-r--r--doc/org.eclipse.qvtd.doc.miniocl.build/.settings/MiniOCL-BuildEverything.mwe2.launch14
-rw-r--r--doc/org.eclipse.qvtd.doc.miniocl.build/.settings/org.eclipse.jdt.core.prefs7
-rw-r--r--doc/org.eclipse.qvtd.doc.miniocl.build/META-INF/MANIFEST.MF11
-rw-r--r--doc/org.eclipse.qvtd.doc.miniocl.build/build.properties4
-rw-r--r--doc/org.eclipse.qvtd.doc.miniocl.build/src/org/eclipse/qvtd/doc/miniocl/build/MiniOCL-BuildEverything.mwe2146
8 files changed, 225 insertions, 0 deletions
diff --git a/doc/org.eclipse.qvtd.doc.miniocl.build/.classpath b/doc/org.eclipse.qvtd.doc.miniocl.build/.classpath
new file mode 100644
index 000000000..eca7bdba8
--- /dev/null
+++ b/doc/org.eclipse.qvtd.doc.miniocl.build/.classpath
@@ -0,0 +1,7 @@
+<?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.8"/>
+ <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
diff --git a/doc/org.eclipse.qvtd.doc.miniocl.build/.gitignore b/doc/org.eclipse.qvtd.doc.miniocl.build/.gitignore
new file mode 100644
index 000000000..177151f72
--- /dev/null
+++ b/doc/org.eclipse.qvtd.doc.miniocl.build/.gitignore
@@ -0,0 +1,2 @@
+/bin/
+/.antlr-generator-3.2.0-patch.jar
diff --git a/doc/org.eclipse.qvtd.doc.miniocl.build/.project b/doc/org.eclipse.qvtd.doc.miniocl.build/.project
new file mode 100644
index 000000000..49bb305e6
--- /dev/null
+++ b/doc/org.eclipse.qvtd.doc.miniocl.build/.project
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.eclipse.qvtd.doc.miniocl.build</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.xtext.ui.shared.xtextBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.ManifestBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.SchemaBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.pde.PluginNature</nature>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ <nature>org.eclipse.xtext.ui.shared.xtextNature</nature>
+ </natures>
+</projectDescription>
diff --git a/doc/org.eclipse.qvtd.doc.miniocl.build/.settings/MiniOCL-BuildEverything.mwe2.launch b/doc/org.eclipse.qvtd.doc.miniocl.build/.settings/MiniOCL-BuildEverything.mwe2.launch
new file mode 100644
index 000000000..b2cb66826
--- /dev/null
+++ b/doc/org.eclipse.qvtd.doc.miniocl.build/.settings/MiniOCL-BuildEverything.mwe2.launch
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<launchConfiguration type="org.eclipse.emf.mwe2.launch.Mwe2LaunchConfigurationType">
+<stringAttribute key="org.eclipse.debug.core.ATTR_REFRESH_SCOPE" value="${workspace}"/>
+<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
+<listEntry value="/org.eclipse.qvtd.doc.miniocl.build"/>
+</listAttribute>
+<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
+<listEntry value="4"/>
+</listAttribute>
+<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="org.eclipse.emf.mwe2.launch.runtime.Mwe2Launcher"/>
+<stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value="src/org/eclipse/qvtd/doc/miniocl/build/MiniOCL-BuildEverything.mwe2"/>
+<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="org.eclipse.qvtd.doc.miniocl.build"/>
+<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-ea"/>
+</launchConfiguration>
diff --git a/doc/org.eclipse.qvtd.doc.miniocl.build/.settings/org.eclipse.jdt.core.prefs b/doc/org.eclipse.qvtd.doc.miniocl.build/.settings/org.eclipse.jdt.core.prefs
new file mode 100644
index 000000000..0c68a61dc
--- /dev/null
+++ b/doc/org.eclipse.qvtd.doc.miniocl.build/.settings/org.eclipse.jdt.core.prefs
@@ -0,0 +1,7 @@
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
+org.eclipse.jdt.core.compiler.compliance=1.8
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.source=1.8
diff --git a/doc/org.eclipse.qvtd.doc.miniocl.build/META-INF/MANIFEST.MF b/doc/org.eclipse.qvtd.doc.miniocl.build/META-INF/MANIFEST.MF
new file mode 100644
index 000000000..96f6213af
--- /dev/null
+++ b/doc/org.eclipse.qvtd.doc.miniocl.build/META-INF/MANIFEST.MF
@@ -0,0 +1,11 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: MiniOCL Example - Build Plugin
+Bundle-SymbolicName: org.eclipse.qvtd.doc.miniocl.build
+Bundle-Version: 1.0.0.qualifier
+Bundle-RequiredExecutionEnvironment: JavaSE-1.8
+Require-Bundle: org.eclipse.emf.mwe2.launch;bundle-version="[2.9.0,3.0.0)",
+ org.eclipse.qvtd.cs2as.build;bundle-version="[0.13.0,1.0.0)",
+ org.eclipse.qvtd.doc.minioclcs.xtext;bundle-version="[0.13.0,1.0.0)",
+ org.eclipse.qvtd.doc.miniocl;bundle-version="[0.13.0,1.0.0)",
+ org.eclipse.ocl.examples.build;bundle-version="[2.1.0,3.0.0)"
diff --git a/doc/org.eclipse.qvtd.doc.miniocl.build/build.properties b/doc/org.eclipse.qvtd.doc.miniocl.build/build.properties
new file mode 100644
index 000000000..34d2e4d2d
--- /dev/null
+++ b/doc/org.eclipse.qvtd.doc.miniocl.build/build.properties
@@ -0,0 +1,4 @@
+source.. = src/
+output.. = bin/
+bin.includes = META-INF/,\
+ .
diff --git a/doc/org.eclipse.qvtd.doc.miniocl.build/src/org/eclipse/qvtd/doc/miniocl/build/MiniOCL-BuildEverything.mwe2 b/doc/org.eclipse.qvtd.doc.miniocl.build/src/org/eclipse/qvtd/doc/miniocl/build/MiniOCL-BuildEverything.mwe2
new file mode 100644
index 000000000..6f71949b3
--- /dev/null
+++ b/doc/org.eclipse.qvtd.doc.miniocl.build/src/org/eclipse/qvtd/doc/miniocl/build/MiniOCL-BuildEverything.mwe2
@@ -0,0 +1,146 @@
+module org.eclipse.qvtd.doc.miniocl.build.MiniOCLBuildEverything
+
+Workflow {
+
+ bean = org.eclipse.emf.ecore.resource.impl.ResourceSetImpl : rSet {}
+ bean = org.eclipse.ocl.examples.build.utilities.ProjectMapSetup { resourceSet = rSet }
+ bean = org.eclipse.ocl.examples.build.utilities.EcoreGenModelSetup { resourceSet = rSet }
+
+ // We run the Xtext Generator
+ component = @org.eclipse.qvtd.doc.GenerateMiniOCLCS { }
+
+
+ // We inject the CS trace property
+ component = org.eclipse.qvtd.cs2as.build.mwe.CSTracePropertyInjector {
+ resourceSet = rSet
+ cSTraceInfo = org.eclipse.qvtd.cs2as.build.mwe.CSTracePropertyInjector.CSTraceInfo {
+ targetGenModel = "platform:/resource/org.eclipse.qvtd.doc.minioclcs.xtext/model/generated/MiniOCLCS.genmodel"
+ }
+ aSTraceType = org.eclipse.qvtd.cs2as.build.mwe.CSTracePropertyInjector.ASTraceInfo {
+ targetGenModel = "platform:/resource/org.eclipse.qvtd.doc.miniocl/model/MiniOCL.genmodel"
+ targetTypeName = "Element"
+ }
+ }
+
+ // We regenerate the CS model
+ component = org.eclipse.ocl.examples.build.utilities.GenerateModel { resourceSet = rSet
+ genModel = "/org.eclipse.qvtd.doc.minioclcs.xtext/model/generated/MiniOCLCS.genmodel"
+ }
+
+ // We regenerate the AS model
+ component = org.eclipse.ocl.examples.build.utilities.GenerateModel { resourceSet = rSet
+ genModel = "/org.eclipse.qvtd.doc.miniocl/model/MiniOCL.genmodel"
+ }
+
+ component = org.eclipse.ocl.examples.build.xtend.GenerateASVisitors { resourceSet = rSet
+ projectName = "org.eclipse.qvtd.doc.miniocl"
+ genModelFile = "model/MiniOCL.genmodel"
+ }
+
+ // We regenerate the AS Lookup model
+ component = org.eclipse.ocl.examples.build.utilities.GenerateModel { resourceSet = rSet
+ genModel = "/org.eclipse.qvtd.doc.miniocl/model/Lookup.genmodel"
+ }
+
+ // We generate the AS Lookup infrastructure
+ component = @SubGenerateAutoASModel { resourceSet = rSet
+ projectName = "org.eclipse.qvtd.doc.miniocl"
+ genModelFile = "model/MiniOCL.genmodel"
+ lookupFilePath = "platform:/resource/org.eclipse.qvtd.doc.minioclcs.xtext/model/MiniOCLCS2ASLookup.ocl"
+ }
+
+
+ // We generate the CS2AS infrastructure
+
+ component = org.eclipse.ocl.examples.build.utilities.CopyAndRename {
+ script = "org.eclipse.qvtd.doc.miniocl.build.MiniOCLBuildEverything"
+ fromProject = "../../plugins/org.eclipse.qvtd.runtime/src"
+ toProject = "../org.eclipse.qvtd.doc.minioclcs.xtext/src-gen"
+ packageCopy = {
+ from = "org.eclipse.qvtd.runtime.internal.cs2as"
+ to = "org.eclipse.qvtd.doc.minioclcs.xtext.tx"
+ }
+ packageCopy = {
+ from = "org.eclipse.qvtd.runtime.evaluation"
+ to = "org.eclipse.qvtd.doc.minioclcs.xtext.tx"
+ }
+ packageCopy = {
+ from = "org.eclipse.qvtd.runtime.internal.evaluation"
+ to = "org.eclipse.qvtd.doc.minioclcs.xtext.internal.tx"
+ }
+ packageCopy = {
+ from = "org.eclipse.qvtd.runtime.labels"
+ to = "org.eclipse.qvtd.doc.minioclcs.xtexts.labels"
+ }
+ packageCopy = {
+ from = "org.eclipse.qvtd.runtime.library.model"
+ to = "org.eclipse.qvtd.doc.minioclcs.xtext.library.model"
+ }
+
+ packageRename = {
+ from = "org.eclipse.qvtd.runtime.internal.cs2as"
+ to = "org.eclipse.qvtd.doc.minioclcs.xtext.tx"
+ }
+
+ packageRename = {
+ from = "org.eclipse.qvtd.runtime.evaluation"
+ to = "org.eclipse.qvtd.doc.minioclcs.xtext.tx"
+ }
+ packageRename = {
+ from = "org.eclipse.qvtd.runtime.internal.evaluation"
+ to = "org.eclipse.qvtd.doc.minioclcs.xtext.internal.tx"
+ }
+ packageRename = {
+ from = "org.eclipse.qvtd.runtime.labels"
+ to = "org.eclipse.qvtd.doc.minioclcs.xtext.labels"
+ }
+ packageRename = {
+ from = "org.eclipse.qvtd.runtime.library.model"
+ to = "org.eclipse.qvtd.doc.minioclcs.xtext.library.model"
+ }
+ }
+
+ component = org.eclipse.ocl.examples.build.utilities.CopyAndRename {
+ script = "org.eclipse.qvtd.doc.miniocl.build.MiniOCLBuildEverything"
+ fromProject = "../../plugins/org.eclipse.qvtd.cs2as.xtext.runtime/src"
+ toProject = "../org.eclipse.qvtd.doc.minioclcs.xtext/src-gen"
+ packageCopy = {
+ from = "org.eclipse.qvtd.cs2as.xtext.runtime"
+ to = "org.eclipse.qvtd.doc.minioclcs.xtext.tx"
+ }
+ packageRename = {
+ from = "org.eclipse.qvtd.runtime.internal.cs2as"
+ to = "org.eclipse.qvtd.doc.minioclcs.xtext.tx"
+ }
+ }
+
+ bean = org.eclipse.emf.ecore.resource.impl.ResourceSetImpl : rSet2 {}
+ bean = org.eclipse.ocl.examples.build.utilities.ProjectMapSetup { resourceSet = rSet2 }
+ bean = org.eclipse.ocl.examples.build.utilities.EcoreGenModelSetup { resourceSet = rSet2 }
+
+ component = org.eclipse.ocl.examples.build.utilities.GenerateCGedQVTiTransformation {
+ resourceSet = rSet2
+ oclDocURI = "platform:/resource/org.eclipse.qvtd.doc.minioclcs.xtext/model/MiniOCLCS2AS.ocl"
+ javaFolder = "../org.eclipse.qvtd.doc.minioclcs.xtext/src-gen"
+ javaPackage = "org.eclipse.qvtd.doc.minioclcs.xtext"
+ lookupSolverClassName = "org.eclipse.qvtd.doc.miniocl.lookup.util.MiniOCLLookupSolver"
+ lookupResultItfName = "org.eclipse.qvtd.doc.miniocl.lookup.util.MiniOCLLookupResult"
+
+ packageRename = {
+ from = "org.eclipse.qvtd.runtime.library.model"
+ to = "org.eclipse.qvtd.doc.minioclcs.xtext.library.model"
+ }
+ packageRename = {
+ from = "org.eclipse.qvtd.runtime.internal.cs2as"
+ to = "org.eclipse.qvtd.doc.minioclcs.xtext.tx"
+ }
+ packageRename = {
+ from = "org.eclipse.qvtd.runtime.evaluation"
+ to = "org.eclipse.qvtd.doc.minioclcs.xtext.tx"
+ }
+ packageRename = {
+ from = "org.eclipse.qvtd.runtime.internal.evaluation"
+ to = "org.eclipse.qvtd.doc.minioclcs.xtext.internal.tx"
+ }
+ }
+} \ No newline at end of file

Back to the top