Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian W. Damus2014-09-08 15:32:32 +0000
committerChristian W. Damus2014-09-08 15:32:43 +0000
commit8665ff856d3289a435bd82df7c856c5db0fac80a (patch)
tree90ed82e349fe8031ba5895c7ffeece3698065204
parent129f348f5ac9a38e1b4caf93b6cbb14f7f7f41a1 (diff)
downloadorg.eclipse.papyrus-8665ff856d3289a435bd82df7c856c5db0fac80a.tar.gz
org.eclipse.papyrus-8665ff856d3289a435bd82df7c856c5db0fac80a.tar.xz
org.eclipse.papyrus-8665ff856d3289a435bd82df7c856c5db0fac80a.zip
441227: [Properties view] Create New Property view tabs not working
https://bugs.eclipse.org/bugs/show_bug.cgi?id=441227 The SingleProfiledElement view also needs to be constrained to apply only to UML Elements. Otherwise, the properties view attempts to access the stereotype-applications property for Diagrams, Tables, and other non-UML content.
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/UML.ctx10
1 files changed, 8 insertions, 2 deletions
diff --git a/plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/UML.ctx b/plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/UML.ctx
index 242804a867f..b5ecd07ba1e 100644
--- a/plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/UML.ctx
+++ b/plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/UML.ctx
@@ -4224,8 +4224,14 @@
</constraints>
</views>
<views name="SingleProfiledElement" sections="//@tabs.2/@sections.1">
- <constraints xsi:type="constraints:SimpleConstraint" name="isAttached">
- <constraintType href="ppe:/environment/org.eclipse.papyrus.infra.constraints/Model/ConstraintEnvironment.xmi#//@constraintTypes.6"/>
+ <constraints xsi:type="constraints:CompositeConstraint">
+ <constraints name="isUMLElement" overrideable="false">
+ <constraintType href="ppe:/environment/org.eclipse.papyrus.uml.properties/Model/Environment.xmi#//@constraintTypes.0"/>
+ <properties xsi:type="constraints:ValueProperty" name="umlClassName" value="Element"/>
+ </constraints>
+ <constraints name="isAttached">
+ <constraintType href="ppe:/environment/org.eclipse.papyrus.infra.constraints/Model/ConstraintEnvironment.xmi#//@constraintTypes.6"/>
+ </constraints>
</constraints>
</views>
<dataContexts name="UML" label="UML">

Back to the top