Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnsgar Radermacher2016-06-06 12:41:21 +0000
committerGerrit Code Review @ Eclipse.org2016-06-06 14:35:12 +0000
commit33ab90d0d82924112278af88930a1049d9da7067 (patch)
tree4f3b9fda34405f4e84f070623e6baa687527b89f /plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext.ui
parentc58930bcc5a0be0176df2ce296e338ec991ced26 (diff)
downloadorg.eclipse.papyrus-33ab90d0d82924112278af88930a1049d9da7067.tar.gz
org.eclipse.papyrus-33ab90d0d82924112278af88930a1049d9da7067.tar.xz
org.eclipse.papyrus-33ab90d0d82924112278af88930a1049d9da7067.zip
Bug 495280 - [XText editor] Cannot more class attributes, if multiplicity != [1]
Diffstat (limited to 'plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext.ui')
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext.ui/src/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contributions/PropertyXtextDirectEditorConfiguration.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext.ui/src/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contributions/PropertyXtextDirectEditorConfiguration.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext.ui/src/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contributions/PropertyXtextDirectEditorConfiguration.java
index a64cc62dcd7..0cc04c7d43c 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext.ui/src/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contributions/PropertyXtextDirectEditorConfiguration.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext.ui/src/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contributions/PropertyXtextDirectEditorConfiguration.java
@@ -138,7 +138,10 @@ public class PropertyXtextDirectEditorConfiguration extends DefaultXtextDirectEd
if (propertyRuleObject.getMultiplicity() != null) {
// Manage the lower and the upper value specifications
- updateCommand.add(updateMultiplicityCommand(provider, property, propertyRuleObject));
+ ICommand updateMultiplicity = updateMultiplicityCommand(provider, property, propertyRuleObject);
+ if (updateMultiplicity != null) {
+ updateCommand.add(updateMultiplicity);
+ }
}
if (propertyRuleObject.getDefault() != null) {

Back to the top