diff options
author | Eike Stepper | 2015-04-29 11:14:59 +0000 |
---|---|---|
committer | Eike Stepper | 2015-04-29 11:14:59 +0000 |
commit | bf030f9c3a2d48682cb6718c00e8db85f95c7703 (patch) | |
tree | 6982409e70e8c3d9bc499834652b721f5b2e8bd3 /plugins/org.eclipse.emf.cdo.dawn.gmf | |
parent | fc1829383a42b6882b628de10cc925cccbaa8c87 (diff) | |
download | cdo-bf030f9c3a2d48682cb6718c00e8db85f95c7703.tar.gz cdo-bf030f9c3a2d48682cb6718c00e8db85f95c7703.tar.xz cdo-bf030f9c3a2d48682cb6718c00e8db85f95c7703.zip |
[458349] Consolidate UI
Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=458349
Diffstat (limited to 'plugins/org.eclipse.emf.cdo.dawn.gmf')
-rw-r--r-- | plugins/org.eclipse.emf.cdo.dawn.gmf/src/org/eclipse/emf/cdo/dawn/gmf/editors/impl/DawnGMFEditorSupport.java | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/plugins/org.eclipse.emf.cdo.dawn.gmf/src/org/eclipse/emf/cdo/dawn/gmf/editors/impl/DawnGMFEditorSupport.java b/plugins/org.eclipse.emf.cdo.dawn.gmf/src/org/eclipse/emf/cdo/dawn/gmf/editors/impl/DawnGMFEditorSupport.java index c79d2dd4ad..993f23c2c5 100644 --- a/plugins/org.eclipse.emf.cdo.dawn.gmf/src/org/eclipse/emf/cdo/dawn/gmf/editors/impl/DawnGMFEditorSupport.java +++ b/plugins/org.eclipse.emf.cdo.dawn.gmf/src/org/eclipse/emf/cdo/dawn/gmf/editors/impl/DawnGMFEditorSupport.java @@ -27,6 +27,7 @@ import org.eclipse.emf.cdo.transaction.CDOTransactionHandlerBase; import org.eclipse.emf.cdo.util.CDOUtil; import org.eclipse.emf.cdo.view.CDOView; +import org.eclipse.emf.common.command.CommandStack; import org.eclipse.emf.ecore.EObject; import org.eclipse.emf.transaction.RecordingCommand; import org.eclipse.emf.transaction.TransactionalEditingDomain; @@ -100,7 +101,8 @@ public class DawnGMFEditorSupport extends DawnAbstractEditorSupport super.rollback(); final DiagramDocumentEditor diagramDocumentEditor = getDiagramEditor(getEditor()); TransactionalEditingDomain editingDomain = diagramDocumentEditor.getEditingDomain(); - editingDomain.getCommandStack().execute(new RecordingCommand(editingDomain) + CommandStack commandStack = editingDomain.getCommandStack(); + commandStack.execute(new RecordingCommand(editingDomain) { @Override public void doExecute() @@ -134,7 +136,8 @@ public class DawnGMFEditorSupport extends DawnAbstractEditorSupport { final DiagramDocumentEditor diagramDocumentEditor = getDiagramEditor(getEditor()); TransactionalEditingDomain editingDomain = diagramDocumentEditor.getEditingDomain(); - editingDomain.getCommandStack().execute(new RecordingCommand(editingDomain) + CommandStack commandStack = editingDomain.getCommandStack(); + commandStack.execute(new RecordingCommand(editingDomain) { @Override public void doExecute() |