commit | 4626573506f175977a5eb7d4fdfba046ccd8f8ea | [log] [tgz] |
---|---|---|
author | Ed Merks <ed.merks@gmail.com> | Tue Mar 31 06:09:06 2015 +0200 |
committer | Ed Merks <ed.merks@gmail.com> | Tue Mar 31 06:09:06 2015 +0200 |
tree | 4592e90cb3f26390f281e47442d9208c71ab3f11 | |
parent | c7dab22a36218d4af0dfa8da638ab70f54246e05 [diff] |
[463421] Resolve all proxies in EcoreEditor before doing 'save as'
diff --git a/plugins/org.eclipse.emf.ecore.editor/src/org/eclipse/emf/ecore/presentation/EcoreEditor.java b/plugins/org.eclipse.emf.ecore.editor/src/org/eclipse/emf/ecore/presentation/EcoreEditor.java index b765f72..ebb85ce 100644 --- a/plugins/org.eclipse.emf.ecore.editor/src/org/eclipse/emf/ecore/presentation/EcoreEditor.java +++ b/plugins/org.eclipse.emf.ecore.editor/src/org/eclipse/emf/ecore/presentation/EcoreEditor.java
@@ -1777,6 +1777,8 @@ } else { + // Ensure that all proxies are resolved before changing the containing resource implementation. + EcoreUtil.resolveAll(currentResource); Resource newResource = resourceSet.createResource(newURI); newResource.getContents().addAll(currentResource.getContents()); resourceSet.getResources().remove(0);