Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.gmf.codegen/templates/impl/parsers/expression.qvto')
-rw-r--r--plugins/org.eclipse.gmf.codegen/templates/impl/parsers/expression.qvto50
1 files changed, 25 insertions, 25 deletions
diff --git a/plugins/org.eclipse.gmf.codegen/templates/impl/parsers/expression.qvto b/plugins/org.eclipse.gmf.codegen/templates/impl/parsers/expression.qvto
index 26a46c3a6..956983cbe 100644
--- a/plugins/org.eclipse.gmf.codegen/templates/impl/parsers/expression.qvto
+++ b/plugins/org.eclipse.gmf.codegen/templates/impl/parsers/expression.qvto
@@ -1,25 +1,25 @@
-import xpt.diagram.Utils;
-modeltype gmfgen uses "http://www.eclipse.org/gmf/2009/GenModel";
-library expression;
-
-helper gmfgen::ExpressionLabelParser::isViewExpressionDefinedAndOcl() : Boolean {
- return not(self.viewExpression.oclIsUndefined()) and self.viewExpression.provider.oclIsKindOf(gmfgen::GenExpressionInterpreter);
-}
-
-helper gmfgen::GenParserImplementation::isViewExpressionDefinedAndOcl() : Boolean {
- return false;
-}
-
-helper gmfgen::GenCommonBase::isViewExpressionDefiedAndOcl() : Boolean {
- return let labelModelFacet : gmfgen::LabelModelFacet
- = if self.oclIsKindOf(gmfgen::GenChildLabelNode) then self.oclAsType(gmfgen::GenChildLabelNode).labelModelFacet
- else (if self.oclIsKindOf(gmfgen::GenLabel) then self.oclAsType(gmfgen::GenLabel).modelFacet
- else null
- endif)
- endif
- in if labelModelFacet = null
- then false
- else labelModelFacet.parser.isViewExpressionDefinedAndOcl()
- endif;
-}
-
+import xpt.diagram.Utils;
+modeltype gmfgen uses "http://www.eclipse.org/gmf/2009/GenModel";
+library expression;
+
+helper gmfgen::ExpressionLabelParser::isViewExpressionDefinedAndOcl() : Boolean {
+ return not(self.viewExpression.oclIsUndefined()) and self.viewExpression.provider.oclIsKindOf(gmfgen::GenExpressionInterpreter);
+}
+
+helper gmfgen::GenParserImplementation::isViewExpressionDefinedAndOcl() : Boolean {
+ return false;
+}
+
+helper gmfgen::GenCommonBase::isViewExpressionDefiedAndOcl() : Boolean {
+ return let labelModelFacet : gmfgen::LabelModelFacet
+ = if self.oclIsKindOf(gmfgen::GenChildLabelNode) then self.oclAsType(gmfgen::GenChildLabelNode).labelModelFacet
+ else (if self.oclIsKindOf(gmfgen::GenLabel) then self.oclAsType(gmfgen::GenLabel).modelFacet
+ else null
+ endif)
+ endif
+ in if labelModelFacet = null
+ then false
+ else labelModelFacet.parser.isViewExpressionDefinedAndOcl()
+ endif;
+}
+

Back to the top