Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Schnekenburger2016-10-10 14:52:11 +0000
committerGerrit Code Review @ Eclipse.org2016-10-11 07:35:13 +0000
commitea31e71762a6e8ffec229465a96eb5ea3c6df02d (patch)
tree4610c72b88d670b5f241b7b987f6b5b1eee4c207
parent18683a3a1dfed571e066d2cc60c2f823406f9332 (diff)
downloadorg.eclipse.papyrus-ea31e71762a6e8ffec229465a96eb5ea3c6df02d.tar.gz
org.eclipse.papyrus-ea31e71762a6e8ffec229465a96eb5ea3c6df02d.tar.xz
org.eclipse.papyrus-ea31e71762a6e8ffec229465a96eb5ea3c6df02d.zip
Bug 503083: [Table] Fail to create NattablePropertyEditor
Patch to xecute the command to create the table inside the editing domain rather than executing it with no command stack.
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/src/org/eclipse/papyrus/uml/properties/widgets/NattablePropertyEditor.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/uml/properties/org.eclipse.papyrus.uml.properties/src/org/eclipse/papyrus/uml/properties/widgets/NattablePropertyEditor.java b/plugins/uml/properties/org.eclipse.papyrus.uml.properties/src/org/eclipse/papyrus/uml/properties/widgets/NattablePropertyEditor.java
index 62d56126ff3..70d94d08f3c 100644
--- a/plugins/uml/properties/org.eclipse.papyrus.uml.properties/src/org/eclipse/papyrus/uml/properties/widgets/NattablePropertyEditor.java
+++ b/plugins/uml/properties/org.eclipse.papyrus.uml.properties/src/org/eclipse/papyrus/uml/properties/widgets/NattablePropertyEditor.java
@@ -409,7 +409,7 @@ public class NattablePropertyEditor extends AbstractPropertyEditor {
final ResourceSet resourceSet = getResourceSet();
// Bug 502160: Remove the resource from the resource set to execute the command without using the editing command stack
resourceSet.getResources().remove(this.resource);
- cc.execute();
+ domain.getCommandStack().execute(cc);
// Bug 502160: Re-add the removed resource before the command execute
resourceSet.getResources().add(this.resource);

Back to the top