Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorashatalin2009-03-16 14:50:59 -0400
committerashatalin2009-03-16 14:50:59 -0400
commit82c76b4789ce0f73e629004fe5e4c3b595b7f39a (patch)
tree3cc24e56740047b14312d9be93ac34a19c6dc3da /plugins/org.eclipse.gmf.codegen/templates.migrated/xpt/ConstraintProviders.xpt
parent98dea06fc7837abfea09e3169ea1ca7cf36e4bba (diff)
downloadorg.eclipse.gmf-tooling-82c76b4789ce0f73e629004fe5e4c3b595b7f39a.tar.gz
org.eclipse.gmf-tooling-82c76b4789ce0f73e629004fe5e4c3b595b7f39a.tar.xz
org.eclipse.gmf-tooling-82c76b4789ce0f73e629004fe5e4c3b595b7f39a.zip
All migrated templates were moved to the original folders (/templates).
Diffstat (limited to 'plugins/org.eclipse.gmf.codegen/templates.migrated/xpt/ConstraintProviders.xpt')
-rw-r--r--plugins/org.eclipse.gmf.codegen/templates.migrated/xpt/ConstraintProviders.xpt101
1 files changed, 0 insertions, 101 deletions
diff --git a/plugins/org.eclipse.gmf.codegen/templates.migrated/xpt/ConstraintProviders.xpt b/plugins/org.eclipse.gmf.codegen/templates.migrated/xpt/ConstraintProviders.xpt
deleted file mode 100644
index dbb98dd7b..000000000
--- a/plugins/org.eclipse.gmf.codegen/templates.migrated/xpt/ConstraintProviders.xpt
+++ /dev/null
@@ -1,101 +0,0 @@
-/*
- * Copyright (c) 2007, 2008 Borland Software Corporation
- *
- * 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:
- * Artem Tikhomirov (Borland) - initial API and implementation
- */
-«IMPORT 'http://www.eclipse.org/gmf/2008/GenModel'»
-«IMPORT 'http://www.eclipse.org/emf/2002/Ecore'»
-«EXTENSION xpt::GenAuditRoot»
-«EXTENSION xpt::GenEditorGenerator»
-«EXTENSION org::eclipse::gmf::internal::codegen::util::CodeGenerationUtils»
-
-«DEFINE extensions FOR gmfgen::GenEditorGenerator-»
-«IF hasAudits(self)»«EXPAND extensions FOR audits»«ENDIF-»
-«ENDDEFINE»
-
-«DEFINE extensions FOR gmfgen::GenAuditRoot-»
-«EXPAND extensions_emfv_constraintProviders»
-«EXPAND extensions_emfv_constraintBindings»
-«EXPAND extensions_emfv_uiContexts»
-«ENDDEFINE»
-
-//
-// Extension point: org.eclipse.emf.validation.constraintProviders
-//
-«DEFINE extensions_emfv_constraintProviders FOR gmfgen::GenAuditRoot-»
- <extension point="org.eclipse.emf.validation.constraintProviders">
- «EXPAND xpt::Common::xmlGeneratedTag»
- «EXPAND declareCategory FOREACH categories-»
- <constraintProvider cache="true">
-«FOREACH getAllTargetedModelPackages(self) AS p-»
- <package namespaceUri="«p.ecorePackage.nsURI»"/>
-«ENDFOREACH-»
- «EXPAND defineCategory FOREACH categories-»
- </constraintProvider>
- </extension>
-«ENDDEFINE»
-
-//
-// Extension point: org.eclipse.emf.validation.constraintBindings
-//
-«DEFINE extensions_emfv_constraintBindings FOR gmfgen::GenAuditRoot-»
- <extension point="org.eclipse.emf.validation.constraintBindings">
- «EXPAND xpt::Common::xmlGeneratedTag»
-«FOREACH clientContexts->asSequence() AS ctx-»
- <clientContext default="false" id="«getQualifiedIdentity(ctx)»">
- <selector class="«ctx.getQualifiedClassName()»"/>
- </clientContext>
- <binding context="«getQualifiedIdentity(ctx)»">
- «FOREACH rules->select(r | r.target <> null and r.target.contextSelector = ctx)->asSequence() /*alternative: ctx.ruleTargets.contains(r.target)*/ AS rule-»
- <constraint ref="«editorGen.plugin.iD».«escapeXML(rule.id)»"/>
- «ENDFOREACH-»
- </binding>
-
-«ENDFOREACH-»
- </extension>
-«ENDDEFINE»
-
-//
-// Extension point: org.eclipse.emf.validation.ui.UIRegisteredClientContext
-//
-«DEFINE extensions_emfv_uiContexts FOR gmfgen::GenAuditRoot-»
-«IF editorGen.diagram.liveValidationUIFeedback»
- <extension point="org.eclipse.emf.validation.ui.UIRegisteredClientContext">
- «EXPAND xpt::Common::xmlGeneratedTag»
-«FOREACH clientContexts->asSequence() AS ctx-»
- <clientContext id="«getQualifiedIdentity(ctx)»"/>
-«ENDFOREACH-»
- </extension>
-«ENDIF-»
-«ENDDEFINE»
-
-«DEFINE declareCategory FOR gmfgen::GenAuditContainer-»
- <category id="«EXPAND _pathMap»" mandatory="false" name="«IF name <> null»«escapeXML(name)»«ELSE»«EXPAND _pathMap»«ENDIF»">
- <![CDATA[«(if description <> null then description else '' endif)»]]>
- </category>
-«ENDDEFINE»
-
-«DEFINE defineCategory FOR gmfgen::GenAuditContainer-»
- <constraints categories="«EXPAND _pathMap»">
- «FOREACH audits->select(a | a.target <> null and a.target.getTargetClass() <> null)->asSequence() AS audit-»
- <constraint id="«escapeXML(audit.id)»"
- «IF audit.requiresConstraintAdapter»lang="Java" class="«audit.getConstraintAdapterQualifiedClassName()»"«ELSE»lang="OCL"«ENDIF»
- name="«escapeXML((if audit.name <> null then audit.name else audit.id endif))»"
- mode="«IF audit.useInLiveMode»Live«ELSE»Batch«ENDIF»"
- severity="«audit.severity.repr()»" statusCode="200">
- «IF not audit.requiresConstraintAdapter»<![CDATA[«(if audit.rule <> null then audit.rule.body else '' endif)»]]>«ENDIF»
- <description><![CDATA[«(if audit.description <> null then audit.description else '' endif)»]]></description>
- <message><![CDATA[«IF audit.message <> null»«audit.message»«ELSE»«(if audit.name <> null then audit.name else audit.id endif)» audit violated«ENDIF»]]></message>
- <target class="«audit.target.getTargetClassModelQualifiedName()»"/>
- </constraint>
- «ENDFOREACH-»
- </constraints>
-«ENDDEFINE»
-
-«DEFINE _pathMap FOR gmfgen::GenAuditContainer»«FOREACH path->asSequence() AS p SEPARATOR '/' »«escapeXML(p.id)»«ENDFOREACH»«ENDDEFINE»

Back to the top