Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorptessier2012-07-05 08:19:28 -0400
committerptessier2012-07-05 08:19:28 -0400
commit6137259c1faf1b95adeb54d0955505522f6b8bab (patch)
treefe260805c29b254392c4fb26d05e8a620cc67fbd /extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation.properties/propertyView/dsmlvalidationproperties/dsmlvalidationproperties.ctx
parent295bbd62d57b44b4cfb7069d3ce165bc8917c4f4 (diff)
downloadorg.eclipse.papyrus-6137259c1faf1b95adeb54d0955505522f6b8bab.tar.gz
org.eclipse.papyrus-6137259c1faf1b95adeb54d0955505522f6b8bab.tar.xz
org.eclipse.papyrus-6137259c1faf1b95adeb54d0955505522f6b8bab.zip
384332: [OCL Usage] add dedicated property view for constraints added in the profile
https://bugs.eclipse.org/bugs/show_bug.cgi?id=384332
Diffstat (limited to 'extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation.properties/propertyView/dsmlvalidationproperties/dsmlvalidationproperties.ctx')
-rw-r--r--extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation.properties/propertyView/dsmlvalidationproperties/dsmlvalidationproperties.ctx39
1 files changed, 39 insertions, 0 deletions
diff --git a/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation.properties/propertyView/dsmlvalidationproperties/dsmlvalidationproperties.ctx b/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation.properties/propertyView/dsmlvalidationproperties/dsmlvalidationproperties.ctx
new file mode 100644
index 00000000000..ea9c6b73fae
--- /dev/null
+++ b/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation.properties/propertyView/dsmlvalidationproperties/dsmlvalidationproperties.ctx
@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="ASCII"?>
+<contexts:Context xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:constraints="http://www.eclipse.org/papyrus/constraints/0.9" xmlns:contexts="http://www.eclipse.org/papyrus/properties/contexts/0.9" name="PapyrusDSMLValidationRule">
+ <dependencies href="ppe:/context/org.eclipse.papyrus.uml.properties/Model/UML/UML.ctx#/"/>
+ <tabs label="Validation Rules Definition" id="papyrusdsmlvalidationrule" priority="100">
+ <sections name="Single ValidationRule" sectionFile="ui/SingleValidationRule.xwt">
+ <widget href="ui/SingleValidationRule.xwt#/"/>
+ </sections>
+ <sections name="Multiple ValidationRule" sectionFile="ui/MultipleValidationRule.xwt">
+ <widget href="ui/MultipleValidationRule.xwt#/"/>
+ </sections>
+ </tabs>
+ <views name="Single ValidationRule" sections="//@tabs.0/@sections.0" automaticContext="true" datacontexts="//@dataContexts.0/@elements.0">
+ <constraints xsi:type="constraints:SimpleConstraint" name="isSingleValidationRule">
+ <constraintType href="ppe:/environment/org.eclipse.papyrus.uml.properties/Model/Environment.xmi#//@constraintTypes.1"/>
+ <properties xsi:type="constraints:ValueProperty" name="stereotypeName" value="PapyrusDSMLValidationRule::ValidationRule"/>
+ </constraints>
+ </views>
+ <views elementMultiplicity="-1" name="Multiple ValidationRule" sections="//@tabs.0/@sections.1" automaticContext="true" datacontexts="//@dataContexts.0/@elements.0">
+ <constraints xsi:type="constraints:SimpleConstraint" name="isMultipleValidationRule">
+ <constraintType href="ppe:/environment/org.eclipse.papyrus.uml.properties/Model/Environment.xmi#//@constraintTypes.1"/>
+ <properties xsi:type="constraints:ValueProperty" name="stereotypeName" value="PapyrusDSMLValidationRule::ValidationRule"/>
+ </constraints>
+ </views>
+ <dataContexts name="PapyrusDSMLValidationRule">
+ <elements name="ValidationRule">
+ <properties name="severity" type="Enumeration"/>
+ <properties name="class"/>
+ <properties name="id"/>
+ <properties name="isEnabledByDefault" type="Boolean"/>
+ <properties name="mode" type="Enumeration"/>
+ <properties name="target"/>
+ <properties name="message"/>
+ <properties name="description"/>
+ <properties name="statusCode" type="Integer"/>
+ <supertypes href="ppe:/context/org.eclipse.papyrus.uml.properties/Model/UML/UML.ctx#//@dataContexts.0/@elements.11"/>
+ </elements>
+ <modelElementFactory href="ppe:/environment/org.eclipse.papyrus.uml.properties/Model/Environment.xmi#//@modelElementFactories.2"/>
+ </dataContexts>
+</contexts:Context>

Back to the top