diff options
| author | Remi Schnekenburger | 2016-10-10 14:52:11 +0000 |
|---|---|---|
| committer | Gerrit Code Review @ Eclipse.org | 2016-10-11 07:35:13 +0000 |
| commit | ea31e71762a6e8ffec229465a96eb5ea3c6df02d (patch) | |
| tree | 4610c72b88d670b5f241b7b987f6b5b1eee4c207 | |
| parent | 18683a3a1dfed571e066d2cc60c2f823406f9332 (diff) | |
| download | org.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.java | 2 |
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); |
