Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteffen Pingel2012-03-09 06:14:02 -0500
committerSteffen Pingel2012-03-09 06:14:02 -0500
commit914e2562e077c9378504cb086c30be4f9165f041 (patch)
tree99b6349f803c11449d749dd59fe42e5dc4945cd8 /org.eclipse.mylyn.tasks.index.ui/src/org
parent8366e7cfff01d39d7ac7e3e4f5ddd9bfe284b17d (diff)
downloadorg.eclipse.mylyn.tasks-914e2562e077c9378504cb086c30be4f9165f041.tar.gz
org.eclipse.mylyn.tasks-914e2562e077c9378504cb086c30be4f9165f041.tar.xz
org.eclipse.mylyn.tasks-914e2562e077c9378504cb086c30be4f9165f041.zip
RESOLVED - bug 373279: fix compile error on 3.5
https://bugs.eclipse.org/bugs/show_bug.cgi?id=373279
Diffstat (limited to 'org.eclipse.mylyn.tasks.index.ui/src/org')
-rw-r--r--org.eclipse.mylyn.tasks.index.ui/src/org/eclipse/mylyn/internal/tasks/index/ui/IndexSearchHandler.java11
1 files changed, 10 insertions, 1 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 fd502584d..f34b8a425 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,6 +10,7 @@
*******************************************************************************/
package org.eclipse.mylyn.internal.tasks.index.ui;
+import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Collection;
@@ -249,7 +250,15 @@ public class IndexSearchHandler extends AbstractSearchHandler {
textControl.removeListener(SWT.Traverse, listener);
textControl.addListener(SWT.Traverse, new Listener() {
public void handleEvent(Event event) {
- if (!adapter.isProposalPopupOpen()) {
+ // TODO e3.6 replace with call to adapter.isProposalPopupOpen()
+ boolean popupOpen = false;
+ try {
+ Method method = ContentProposalAdapter.class.getDeclaredMethod("isProposalPopupOpen");
+ popupOpen = (Boolean) method.invoke(adapter);
+ } catch (Exception e) {
+ // ignore, Eclipse 3.5 does not support this API
+ }
+ if (!popupOpen) {
listener.handleEvent(event);
}
}

Back to the top