Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcrogers2010-10-25 19:39:49 -0400
committercrogers2010-10-25 19:39:49 -0400
commitd3b61b961c31c35705369e77ca85242334fc4d74 (patch)
tree8ac59678ab41bd0b351b58afdd8927d87564ff93
parent9e1bbeface1b5a846b94863b2e4615d6624f5c4f (diff)
downloadwebtools.jsf-d3b61b961c31c35705369e77ca85242334fc4d74.tar.gz
webtools.jsf-d3b61b961c31c35705369e77ca85242334fc4d74.tar.xz
webtools.jsf-d3b61b961c31c35705369e77ca85242334fc4d74.zip
[Bug 328666] Memory leak in MetaDataLocatorFactory - listen for project delete event and remove locators.
-rw-r--r--jsf/plugins/org.eclipse.jst.jsf.common/src/org/eclipse/jst/jsf/common/metadata/internal/MetaDataLocatorFactory.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/jsf/plugins/org.eclipse.jst.jsf.common/src/org/eclipse/jst/jsf/common/metadata/internal/MetaDataLocatorFactory.java b/jsf/plugins/org.eclipse.jst.jsf.common/src/org/eclipse/jst/jsf/common/metadata/internal/MetaDataLocatorFactory.java
index a590590ec..a82cad7ac 100644
--- a/jsf/plugins/org.eclipse.jst.jsf.common/src/org/eclipse/jst/jsf/common/metadata/internal/MetaDataLocatorFactory.java
+++ b/jsf/plugins/org.eclipse.jst.jsf.common/src/org/eclipse/jst/jsf/common/metadata/internal/MetaDataLocatorFactory.java
@@ -41,7 +41,8 @@ public class MetaDataLocatorFactory
public synchronized static MetaDataLocatorFactory getInstance(){
if (INSTANCE == null){
INSTANCE = new MetaDataLocatorFactory();
- ResourcesPlugin.getWorkspace().addResourceChangeListener(INSTANCE, IResourceChangeEvent.PRE_CLOSE);
+ ResourcesPlugin.getWorkspace().addResourceChangeListener(INSTANCE,
+ IResourceChangeEvent.PRE_CLOSE | IResourceChangeEvent.PRE_DELETE);
}
return INSTANCE;
}

Back to the top