Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Lorenzo2018-05-24 14:18:50 +0000
committerBenoit Maggi2018-05-25 08:00:48 +0000
commitfc57ec67ba3f4985c5671f70d3cf570f94b40ae1 (patch)
tree623e7c38d5d498f66b0f189ac306b34f768cfb4b
parente2a420c06ffe82d452498710211c5c25e64d2466 (diff)
downloadorg.eclipse.papyrus-fc57ec67ba3f4985c5671f70d3cf570f94b40ae1.tar.gz
org.eclipse.papyrus-fc57ec67ba3f4985c5671f70d3cf570f94b40ae1.tar.xz
org.eclipse.papyrus-fc57ec67ba3f4985c5671f70d3cf570f94b40ae1.zip
bug 535070: [Table] Table can't reopen
Change-Id: Ia7b4c555c17fb5f8cc6a4c129d31b6ae11e0ce9d Signed-off-by: Vincent Lorenzo <vincent.lorenzo@cea.fr>
-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