Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xplugins/emf/org.eclipse.papyrus.emf/src/org/eclipse/papyrus/emf/resources/AbstractEMFResource.java18
1 files changed, 15 insertions, 3 deletions
diff --git a/plugins/emf/org.eclipse.papyrus.emf/src/org/eclipse/papyrus/emf/resources/AbstractEMFResource.java b/plugins/emf/org.eclipse.papyrus.emf/src/org/eclipse/papyrus/emf/resources/AbstractEMFResource.java
index 32bf3823829..964fd4c1a66 100755
--- a/plugins/emf/org.eclipse.papyrus.emf/src/org/eclipse/papyrus/emf/resources/AbstractEMFResource.java
+++ b/plugins/emf/org.eclipse.papyrus.emf/src/org/eclipse/papyrus/emf/resources/AbstractEMFResource.java
@@ -8,7 +8,7 @@
*
* Contributors:
* Vincent LORENZO (CEA LIST) - Initial API and implementation
- *
+ * Vincent LORENZO (CEA LIST) - Bug 535070
*****************************************************************************/
package org.eclipse.papyrus.emf.resources;
@@ -73,7 +73,7 @@ public abstract class AbstractEMFResource extends XMIResourceImpl {
@Override
public Map<Object, Object> getDefaultSaveOptions() {
if (null == this.defaultSaveOptions) {
- super.getDefaultSaveOptions();//initialize the default save options
+ super.getDefaultSaveOptions();// initialize the default save options
this.defaultSaveOptions.putAll(LoadAndSaveOptionsUtils.getSaveOptions());
}
return this.defaultSaveOptions;
@@ -89,9 +89,21 @@ public abstract class AbstractEMFResource extends XMIResourceImpl {
@Override
public Map<Object, Object> getDefaultLoadOptions() {
if (null == this.defaultLoadOptions) {
- super.getDefaultLoadOptions(); //initialize the default load options
+ super.getDefaultLoadOptions(); // initialize the default load options
this.defaultLoadOptions.putAll(LoadAndSaveOptionsUtils.getLoadOptions());
}
return this.defaultLoadOptions;
}
+
+ /**
+ * @see org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl#assignIDsWhileLoading()
+ *
+ * @return
+ */
+ @Override
+ protected boolean assignIDsWhileLoading() {
+ //bug 535070
+ return false; // overridden to avoid to assign XMI_ID to element of previous configuration which are stilling use position to be saved
+
+ }
}

Back to the top