Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnsgar Radermacher2014-03-11 10:28:53 +0000
committerAnsgar Radermacher2014-03-11 12:28:53 +0000
commit7189e085bbe7e64f027d4465bd92f1717c17d76b (patch)
treed19fb5bfdb05d9c98de226c856300c98087645b2 /plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext.ui
parentfcba042613d85123a02972df2f19874ab1eacbab (diff)
downloadorg.eclipse.papyrus-7189e085bbe7e64f027d4465bd92f1717c17d76b.tar.gz
org.eclipse.papyrus-7189e085bbe7e64f027d4465bd92f1717c17d76b.tar.xz
org.eclipse.papyrus-7189e085bbe7e64f027d4465bd92f1717c17d76b.zip
Bug 315231 - [All Diagrams] Direct Edit : Xtext / Papyrus integration - better handling of model listener in org.eclipse.papyrus.uml.properties.xtext
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.java2
1 files changed, 1 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 98860acb908..65776cadde7 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
@@ -201,7 +201,7 @@ public class PropertyXtextDirectEditorConfiguration extends DefaultXtextDirectEd
DestroyElementRequest destroyDefaultValueRequest = new DestroyElementRequest(property.getDefaultValue(), false);
ICommand destroyDefaultValueCommand = provider.getEditCommand(destroyDefaultValueRequest);
updateCommand.add(destroyDefaultValueCommand);
- } else {
+ } else if (newDefault != null) {
SetRequest setDefaultValueRequest = new SetRequest(property, UMLPackage.eINSTANCE.getProperty_Default(), newDefault);
ICommand setDefaultValueCommand = provider.getEditCommand(setDefaultValueRequest);
updateCommand.add(setDefaultValueCommand);

Back to the top