Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Schwarz2014-05-22 01:11:10 -0400
committerTobias Schwarz2014-05-22 01:11:10 -0400
commitd1ff40d96ba415950f8cb393d641defdab9093cd (patch)
tree53b5a42f7cb8e53578c95386063a8adb02e50ea6
parent2441053b3164564d982379395fc2de37bea393e7 (diff)
downloadorg.eclipse.tcf-d1ff40d96ba415950f8cb393d641defdab9093cd.tar.gz
org.eclipse.tcf-d1ff40d96ba415950f8cb393d641defdab9093cd.tar.xz
org.eclipse.tcf-d1ff40d96ba415950f8cb393d641defdab9093cd.zip
Target Explorer: use reflection to call
FilteredTree.setQuickSelectionMode(true) to make this work again in e4 environment.
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.tcf.processes.ui/src/org/eclipse/tcf/te/tcf/processes/ui/internal/dialogs/AttachContextSelectionDialog.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.tcf.processes.ui/src/org/eclipse/tcf/te/tcf/processes/ui/internal/dialogs/AttachContextSelectionDialog.java b/target_explorer/plugins/org.eclipse.tcf.te.tcf.processes.ui/src/org/eclipse/tcf/te/tcf/processes/ui/internal/dialogs/AttachContextSelectionDialog.java
index f9b8b2b33..d1757821d 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.tcf.processes.ui/src/org/eclipse/tcf/te/tcf/processes/ui/internal/dialogs/AttachContextSelectionDialog.java
+++ b/target_explorer/plugins/org.eclipse.tcf.te.tcf.processes.ui/src/org/eclipse/tcf/te/tcf/processes/ui/internal/dialogs/AttachContextSelectionDialog.java
@@ -9,6 +9,7 @@
*******************************************************************************/
package org.eclipse.tcf.te.tcf.processes.ui.internal.dialogs;
+import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.EventObject;
import java.util.Iterator;
@@ -194,6 +195,14 @@ public class AttachContextSelectionDialog extends CustomTitleAreaDialog implemen
gd.widthHint = 300;
gd.heightHint = 300;
filteredTree.setLayoutData(gd);
+ // needs to be set using reflection as it is e4
+ // filteredTree.setQuickSelectionMode(true);
+ try {
+ Method method = filteredTree.getClass().getMethod("setQuickSelectionMode", Boolean.TYPE); //$NON-NLS-1$
+ method.invoke(filteredTree, Boolean.TRUE);
+ }
+ catch (Throwable e) {
+ }
viewer.setContentProvider(new ContentProvider());
DelegatingLabelProvider labelProvider = new DelegatingLabelProvider() {

Back to the top