Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdolfo SBH2016-10-26 14:34:21 +0000
committerEd Willink2016-10-31 17:39:37 +0000
commitd41aff326fddd73c8aee8eda6e5902021db41423 (patch)
tree125d5aee048ba0278bb1f7a3067b3e72da5bf2f0 /doc/org.eclipse.qvtd.doc.minioclcs.xtext/model/MiniOCLFullHelpers.ocl
parent04985be519fa240a2f243b0aca964c4611e68170 (diff)
downloadorg.eclipse.qvtd-d41aff326fddd73c8aee8eda6e5902021db41423.tar.gz
org.eclipse.qvtd-d41aff326fddd73c8aee8eda6e5902021db41423.tar.xz
org.eclipse.qvtd-d41aff326fddd73c8aee8eda6e5902021db41423.zip
[cs2as] - Minor MiniOCLFull fixes and adopting last changes from the
CompleteOCL documents generator
Diffstat (limited to 'doc/org.eclipse.qvtd.doc.minioclcs.xtext/model/MiniOCLFullHelpers.ocl')
-rw-r--r--doc/org.eclipse.qvtd.doc.minioclcs.xtext/model/MiniOCLFullHelpers.ocl3
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/org.eclipse.qvtd.doc.minioclcs.xtext/model/MiniOCLFullHelpers.ocl b/doc/org.eclipse.qvtd.doc.minioclcs.xtext/model/MiniOCLFullHelpers.ocl
index 932ebb9ce..fd18e0956 100644
--- a/doc/org.eclipse.qvtd.doc.minioclcs.xtext/model/MiniOCLFullHelpers.ocl
+++ b/doc/org.eclipse.qvtd.doc.minioclcs.xtext/model/MiniOCLFullHelpers.ocl
@@ -2,10 +2,11 @@ import cs : 'generated/MiniOCLCS.ecore#/'
import as : '/resource/org.eclipse.qvtd.doc.miniocl/model/MiniOCL.ecore#/'
package cs
-context cs::NameExpCS
+context cs::NavigationExpCS
def : parentAsCallExpCS() :CallExpCS =
let container = self.oclContainer()
in if container.oclIsKindOf(CallExpCS) then container.oclAsType(CallExpCS) else null endif
+context cs::NameExpCS
def : isNavExpOfACallExpCS() :Boolean =
let parentCallExpCS = parentAsCallExpCS()
in parentCallExpCS <> null and parentCallExpCS.navExp = self

Back to the top