Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas FAUVERGUE2018-06-20 15:44:45 +0000
committerNicolas FAUVERGUE2018-06-21 06:25:42 +0000
commit345623c30ee1d457eb85ddf3deba5d81e61500de (patch)
tree1bddc9927e48b0bb30af7ebfac04a5970b9a41b9
parent27dc56fe5e41582df6c99efbde78df1986419c79 (diff)
downloadorg.eclipse.papyrus-345623c30ee1d457eb85ddf3deba5d81e61500de.tar.gz
org.eclipse.papyrus-345623c30ee1d457eb85ddf3deba5d81e61500de.tar.xz
org.eclipse.papyrus-345623c30ee1d457eb85ddf3deba5d81e61500de.zip
Bug 536096: [Profile] Double click in profile applications dialog does
not work When setting the selector, we need to clear the listener on existing selector and re-add the listener to the new selector. Change-Id: Id2841b11b03d78fb7cbf3123ca5cb3ae24938566 Signed-off-by: Nicolas FAUVERGUE <nicolas.fauvergue@cea.fr>
-rw-r--r--plugins/infra/ui/org.eclipse.papyrus.infra.widgets/src/org/eclipse/papyrus/infra/widgets/widgets/MultipleValueSelectionWidget.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/plugins/infra/ui/org.eclipse.papyrus.infra.widgets/src/org/eclipse/papyrus/infra/widgets/widgets/MultipleValueSelectionWidget.java b/plugins/infra/ui/org.eclipse.papyrus.infra.widgets/src/org/eclipse/papyrus/infra/widgets/widgets/MultipleValueSelectionWidget.java
index 674975106d6..d042b77bffa 100644
--- a/plugins/infra/ui/org.eclipse.papyrus.infra.widgets/src/org/eclipse/papyrus/infra/widgets/widgets/MultipleValueSelectionWidget.java
+++ b/plugins/infra/ui/org.eclipse.papyrus.infra.widgets/src/org/eclipse/papyrus/infra/widgets/widgets/MultipleValueSelectionWidget.java
@@ -741,7 +741,11 @@ public class MultipleValueSelectionWidget implements ISelectionChangedListener,
}
public void setSelector(IElementSelector selector) {
+ if(null != this.selector) {
+ this.selector.removeElementSelectionListener(this);
+ }
this.selector = selector;
+ this.selector.addElementSelectionListener(this);
}
/**
@@ -808,7 +812,9 @@ public class MultipleValueSelectionWidget implements ISelectionChangedListener,
*/
@Override
public void dispose() {
- selector.removeElementSelectionListener(this);
+ if(null != this.selector) {
+ this.selector.removeElementSelectionListener(this);
+ }
}
/**

Back to the top