Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEd Merks2015-03-31 04:09:06 +0000
committerEd Merks2015-03-31 04:09:06 +0000
commit4626573506f175977a5eb7d4fdfba046ccd8f8ea (patch)
tree4592e90cb3f26390f281e47442d9208c71ab3f11
parentc7dab22a36218d4af0dfa8da638ab70f54246e05 (diff)
downloadorg.eclipse.emf-4626573506f175977a5eb7d4fdfba046ccd8f8ea.tar.gz
org.eclipse.emf-4626573506f175977a5eb7d4fdfba046ccd8f8ea.tar.xz
org.eclipse.emf-4626573506f175977a5eb7d4fdfba046ccd8f8ea.zip
[463421] Resolve all proxies in EcoreEditor before doing 'save as'
-rw-r--r--plugins/org.eclipse.emf.ecore.editor/src/org/eclipse/emf/ecore/presentation/EcoreEditor.java2
1 files changed, 2 insertions, 0 deletions
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 b765f7210..ebb85cea9 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 @@ public class EcoreEditor
}
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);

Back to the top