diff options
author | Ansgar Radermacher | 2016-06-06 12:41:21 +0000 |
---|---|---|
committer | Gerrit Code Review @ Eclipse.org | 2016-06-06 14:35:12 +0000 |
commit | 33ab90d0d82924112278af88930a1049d9da7067 (patch) | |
tree | 4f3b9fda34405f4e84f070623e6baa687527b89f /plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext.ui | |
parent | c58930bcc5a0be0176df2ce296e338ec991ced26 (diff) | |
download | org.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]
Change-Id: I38af7fb5376c32f246ee59261b09c16ba6be9cf2
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.java | 5 |
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) { |