Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCamille Letavernier2014-10-20 15:45:35 +0000
committerCamille Letavernier2014-10-20 15:45:35 +0000
commit9f2bd7d5bb48765df197d2a2b010b61ac4875bf8 (patch)
tree1b1c89f0972176e9f0ba080ceccd6b4c28caf33f /plugins
parent6dbb5e1b2e82631a57625ac005fabff386d6a618 (diff)
downloadorg.eclipse.papyrus-9f2bd7d5bb48765df197d2a2b010b61ac4875bf8.tar.gz
org.eclipse.papyrus-9f2bd7d5bb48765df197d2a2b010b61ac4875bf8.tar.xz
org.eclipse.papyrus-9f2bd7d5bb48765df197d2a2b010b61ac4875bf8.zip
447872: [OCL in Papyrus] Suspected memory leak in OCL XText Editor when
editing a profile https://bugs.eclipse.org/bugs/show_bug.cgi?id=447872
Diffstat (limited to 'plugins')
-rw-r--r--plugins/infra/core/org.eclipse.papyrus.infra.core/src/org/eclipse/papyrus/infra/core/resource/AbstractBaseModel.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/infra/core/org.eclipse.papyrus.infra.core/src/org/eclipse/papyrus/infra/core/resource/AbstractBaseModel.java b/plugins/infra/core/org.eclipse.papyrus.infra.core/src/org/eclipse/papyrus/infra/core/resource/AbstractBaseModel.java
index 2b81839f198..b97d551c383 100644
--- a/plugins/infra/core/org.eclipse.papyrus.infra.core/src/org/eclipse/papyrus/infra/core/resource/AbstractBaseModel.java
+++ b/plugins/infra/core/org.eclipse.papyrus.infra.core/src/org/eclipse/papyrus/infra/core/resource/AbstractBaseModel.java
@@ -279,6 +279,8 @@ public abstract class AbstractBaseModel extends AbstractModel implements IVersio
saveOptions.put(XMLResource.OPTION_SAVE_TYPE_INFORMATION, Boolean.TRUE);
saveOptions.put(XMLResource.OPTION_SKIP_ESCAPE_URI, Boolean.FALSE);
saveOptions.put(XMLResource.OPTION_ENCODING, "UTF-8");
+ saveOptions.put(XMLResource.OPTION_USE_FILE_BUFFER, true);
+ saveOptions.put(XMLResource.OPTION_FLUSH_THRESHOLD, 4 * 1024 * 1024); // 4 MB Buffer
// see bug 397987: [Core][Save] The referenced plugin models are saved using relative path
saveOptions.put(XMLResource.OPTION_URI_HANDLER, new org.eclipse.emf.ecore.xmi.impl.URIHandlerImpl.PlatformSchemeAware());

Back to the top