Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian W. Damus2014-05-08 18:45:05 +0000
committerChristian W. Damus2014-05-09 21:54:26 +0000
commitc3e9caffc1268a4887429320e993362f2bddc158 (patch)
treedcf52c5b690510923cedf7a26e87121616a20e6a /plugins/customization
parent5ac520f61c3d265b1883406061521aa8ea777e83 (diff)
downloadorg.eclipse.papyrus-c3e9caffc1268a4887429320e993362f2bddc158.tar.gz
org.eclipse.papyrus-c3e9caffc1268a4887429320e993362f2bddc158.tar.xz
org.eclipse.papyrus-c3e9caffc1268a4887429320e993362f2bddc158.zip
422257: [Performances] Memory leaks
https://bugs.eclipse.org/bugs/show_bug.cgi?id=422257 Fix leak of one-off extension registry readers and whatever they reference.
Diffstat (limited to 'plugins/customization')
-rw-r--r--plugins/customization/org.eclipse.papyrus.customization.properties/src/org/eclipse/papyrus/customization/properties/storage/actions/ContextStorageActionRegistry.java14
1 files changed, 8 insertions, 6 deletions
diff --git a/plugins/customization/org.eclipse.papyrus.customization.properties/src/org/eclipse/papyrus/customization/properties/storage/actions/ContextStorageActionRegistry.java b/plugins/customization/org.eclipse.papyrus.customization.properties/src/org/eclipse/papyrus/customization/properties/storage/actions/ContextStorageActionRegistry.java
index 5d075d87f3d..e2bd6d93d68 100644
--- a/plugins/customization/org.eclipse.papyrus.customization.properties/src/org/eclipse/papyrus/customization/properties/storage/actions/ContextStorageActionRegistry.java
+++ b/plugins/customization/org.eclipse.papyrus.customization.properties/src/org/eclipse/papyrus/customization/properties/storage/actions/ContextStorageActionRegistry.java
@@ -1,5 +1,5 @@
/*****************************************************************************
- * Copyright (c) 2013 CEA LIST.
+ * Copyright (c) 2013, 2014 CEA LIST and others.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
@@ -8,6 +8,8 @@
*
* Contributors:
* CEA LIST - Initial API and implementation
+ * Christian W. Damus (CEA) - bug 422257
+ *
*****************************************************************************/
package org.eclipse.papyrus.customization.properties.storage.actions;
@@ -18,8 +20,8 @@ import java.util.Map;
import org.eclipse.core.runtime.IConfigurationElement;
import org.eclipse.core.runtime.Platform;
-import org.eclipse.emf.ecore.plugin.RegistryReader;
import org.eclipse.papyrus.customization.properties.Activator;
+import org.eclipse.papyrus.infra.core.utils.OneTimeRegistryReader;
import org.eclipse.papyrus.views.properties.contexts.Context;
/**
@@ -57,20 +59,20 @@ public class ContextStorageActionRegistry {
public IContextCopyAction getContextCopyAction(Context context) {
return getStorageActionProvider(context).getContextCopyAction();
}
-
+
public IContextEditAction getContextEditAction(Context context) {
return getStorageActionProvider(context).getContextEditAction();
}
-
+
public IContextDeleteAction getContextDeleteAction(Context context) {
return getStorageActionProvider(context).getContextDeleteAction();
}
-
+
//
// Nested types
//
- private class MyRegistryReader extends RegistryReader {
+ private class MyRegistryReader extends OneTimeRegistryReader {
private static final String A_CLASS = "class"; //$NON-NLS-1$

Back to the top