Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Schnekenburger2016-11-10 10:56:07 +0000
committerRemi Schnekenburger2016-11-10 10:56:07 +0000
commit3be3e8a2c746969c82c304e716c7e9cfd0917e17 (patch)
tree367cd6ce0f5008d54da7f98e03eaee2f273b4e1d
parent6f6e644ce698d45b3c9d3d8f552ec3ba506365fe (diff)
downloadorg.eclipse.papyrus-3be3e8a2c746969c82c304e716c7e9cfd0917e17.tar.gz
org.eclipse.papyrus-3be3e8a2c746969c82c304e716c7e9cfd0917e17.tar.xz
org.eclipse.papyrus-3be3e8a2c746969c82c304e716c7e9cfd0917e17.zip
Bug 503083: [Table] Fail to create NattablePropertyEditor
- patch to execute the command to create the table inside the editing domain rather than executing it with no command stack. This is the same fix compared to Review 82852 already merged on streams/2.0-maintenance Change-Id: Id6c7c93edd1b49f840a46255a58169c2371536b0 Signed-off-by: Remi Schnekenburger <remi.schnekenburger@cea.fr>
-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 6e47304abf3..c295596b64e 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
@@ -405,7 +405,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