aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWojciech Sudol2014-04-16 07:27:28 (EDT)
committerWojciech Sudol2014-04-16 07:27:28 (EDT)
commit28578db491c35755874999b63dbbe97c5a1e2850 (patch)
tree8e1df4d31e0df83ebc94f5f56e8883ff76665a5a
parenteaa7476a939833a30faec48f3a262fe042dd47e8 (diff)
downloadeclipse.platform.ui-28578db491c35755874999b63dbbe97c5a1e2850.zip
eclipse.platform.ui-28578db491c35755874999b63dbbe97c5a1e2850.tar.gz
eclipse.platform.ui-28578db491c35755874999b63dbbe97c5a1e2850.tar.bz2
Bug 430401 - [WorkbenchParts] [Compatibility] Part-specificrefs/changes/21/25121/1
ISelectionService.addSelectionListener(String, ISelectionListener) no longer provides documented behavior Signed-off-by: Wojciech Sudol <wojciech.sudol@pl.ibm.com>
-rw-r--r--bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/e4/compatibility/SelectionService.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/e4/compatibility/SelectionService.java b/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/e4/compatibility/SelectionService.java
index 17c07f7..bf99dcb 100644
--- a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/e4/compatibility/SelectionService.java
+++ b/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/e4/compatibility/SelectionService.java
@@ -15,6 +15,7 @@ import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
+import javax.annotation.PreDestroy;
import javax.inject.Inject;
import javax.inject.Named;
import org.eclipse.core.runtime.ListenerList;
@@ -205,6 +206,11 @@ public class SelectionService implements ISelectionChangedListener, ISelectionSe
}
}
+ @PreDestroy
+ public void dispose() {
+ selectionService = null;
+ }
+
private void notifyListeners(IWorkbenchPart workbenchPart, ISelection selection,
ListenerList listenerList) {
for (Object listener : listenerList.getListeners()) {