Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteffen Pingel2013-09-14 11:12:37 -0400
committerSteffen Pingel2013-09-14 11:12:37 -0400
commit107292948471bd78a009d2ef4d436b532db068e1 (patch)
tree080b7893a3bbebf03a0c95da59db481ff539ffa3 /org.eclipse.mylyn.tasks.index.ui/src
parentbac81702e35fbf5f0d9986dcc3cbf98533437e8b (diff)
downloadorg.eclipse.mylyn.tasks-107292948471bd78a009d2ef4d436b532db068e1.tar.gz
org.eclipse.mylyn.tasks-107292948471bd78a009d2ef4d436b532db068e1.tar.xz
org.eclipse.mylyn.tasks-107292948471bd78a009d2ef4d436b532db068e1.zip
417262: set base target to Eclipse 3.6
Change-Id: Iecb5dd95783d52411249bb3cadd9a233e6f7d095 Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=417262
Diffstat (limited to 'org.eclipse.mylyn.tasks.index.ui/src')
-rw-r--r--org.eclipse.mylyn.tasks.index.ui/src/org/eclipse/mylyn/internal/tasks/index/ui/IndexSearchHandler.java12
1 files changed, 1 insertions, 11 deletions
diff --git a/org.eclipse.mylyn.tasks.index.ui/src/org/eclipse/mylyn/internal/tasks/index/ui/IndexSearchHandler.java b/org.eclipse.mylyn.tasks.index.ui/src/org/eclipse/mylyn/internal/tasks/index/ui/IndexSearchHandler.java
index 59f8da32c..a58562c3a 100644
--- a/org.eclipse.mylyn.tasks.index.ui/src/org/eclipse/mylyn/internal/tasks/index/ui/IndexSearchHandler.java
+++ b/org.eclipse.mylyn.tasks.index.ui/src/org/eclipse/mylyn/internal/tasks/index/ui/IndexSearchHandler.java
@@ -10,8 +10,6 @@
*******************************************************************************/
package org.eclipse.mylyn.internal.tasks.index.ui;
-import java.lang.reflect.Method;
-
import org.eclipse.jface.fieldassist.ContentProposalAdapter;
import org.eclipse.jface.fieldassist.IContentProposalProvider;
import org.eclipse.jface.fieldassist.TextContentAdapter;
@@ -107,15 +105,7 @@ public class IndexSearchHandler extends AbstractSearchHandler {
textControl.removeListener(SWT.Traverse, listener);
textControl.addListener(SWT.Traverse, new Listener() {
public void handleEvent(Event event) {
- // TODO e3.6 replace with call to adapter.isProposalPopupOpen()
- boolean popupOpen = false;
- try {
- Method method = ContentProposalAdapter.class.getDeclaredMethod("isProposalPopupOpen"); //$NON-NLS-1$
- popupOpen = (Boolean) method.invoke(adapter);
- } catch (Exception e) {
- // ignore, Eclipse 3.5 does not support this API
- }
- if (!popupOpen) {
+ if (!adapter.isProposalPopupOpen()) {
listener.handleEvent(event);
}
}

Back to the top