Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean Michel-Lemieux2004-02-25 21:30:33 +0000
committerJean Michel-Lemieux2004-02-25 21:30:33 +0000
commit1c9e2e0038d84a70ca5c65bdfba279b755dc4ede (patch)
tree9ba99f6d761bb9dc5fb9e4e83e8e871f5abfc09c
parentd3f4fe1a309593f27efcaba68e898e78d7797499 (diff)
downloadeclipse.platform.team-1c9e2e0038d84a70ca5c65bdfba279b755dc4ede.tar.gz
eclipse.platform.team-1c9e2e0038d84a70ca5c65bdfba279b755dc4ede.tar.xz
eclipse.platform.team-1c9e2e0038d84a70ca5c65bdfba279b755dc4ede.zip
Added dispose to un-register the property change listener
-rw-r--r--bundles/org.eclipse.team.ui/src/org/eclipse/team/ui/synchronize/viewers/TreeViewerAdvisor.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/bundles/org.eclipse.team.ui/src/org/eclipse/team/ui/synchronize/viewers/TreeViewerAdvisor.java b/bundles/org.eclipse.team.ui/src/org/eclipse/team/ui/synchronize/viewers/TreeViewerAdvisor.java
index 69875730e..f38806af5 100644
--- a/bundles/org.eclipse.team.ui/src/org/eclipse/team/ui/synchronize/viewers/TreeViewerAdvisor.java
+++ b/bundles/org.eclipse.team.ui/src/org/eclipse/team/ui/synchronize/viewers/TreeViewerAdvisor.java
@@ -132,6 +132,14 @@ public class TreeViewerAdvisor extends StructuredViewerAdvisor implements IPrope
/* (non-Javadoc)
+ * @see org.eclipse.team.ui.synchronize.viewers.StructuredViewerAdvisor#dispose()
+ */
+ public void dispose() {
+ TeamUIPlugin.getPlugin().getPreferenceStore().removePropertyChangeListener(this);
+ super.dispose();
+ }
+
+ /* (non-Javadoc)
* @see org.eclipse.team.ui.synchronize.viewers.StructuredViewerAdvisor#initializeListeners(org.eclipse.jface.viewers.StructuredViewer)
*/
protected void initializeListeners(StructuredViewer viewer) {

Back to the top