Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormkersten2007-04-20 10:47:48 +0000
committermkersten2007-04-20 10:47:48 +0000
commiteaf9f48c632d9d7e545051263246ce80020fa343 (patch)
tree0a14cf05d1575adb10ddaf2b2fe447ea8c09ed3d
parent73d8e90ce2d91985667dbdae7b3a4811debcb212 (diff)
downloadorg.eclipse.mylyn.tasks-eaf9f48c632d9d7e545051263246ce80020fa343.tar.gz
org.eclipse.mylyn.tasks-eaf9f48c632d9d7e545051263246ce80020fa343.tar.xz
org.eclipse.mylyn.tasks-eaf9f48c632d9d7e545051263246ce80020fa343.zip
RESOLVED - bug 182888: Invalid thread access in Task Search
https://bugs.eclipse.org/bugs/show_bug.cgi?id=182888
-rw-r--r--org.eclipse.mylyn.tasks.ui/plugin.xml2
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/search/SearchHitCollector.java7
2 files changed, 7 insertions, 2 deletions
diff --git a/org.eclipse.mylyn.tasks.ui/plugin.xml b/org.eclipse.mylyn.tasks.ui/plugin.xml
index 250f646ee..f3c17609d 100644
--- a/org.eclipse.mylyn.tasks.ui/plugin.xml
+++ b/org.eclipse.mylyn.tasks.ui/plugin.xml
@@ -288,7 +288,7 @@
enablesFor="*"
icon="icons/eview16/repositories.gif"
id="org.eclipse.mylar.tasks.ui.open.repositories.view"
- label="Show Task Repositries View"
+ label="Show Task Repositories View"
menubarPath="tasks"
tooltip="Show Task Repositories View">
</action>
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/search/SearchHitCollector.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/search/SearchHitCollector.java
index 2dc52f9c0..74f74e829 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/search/SearchHitCollector.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/search/SearchHitCollector.java
@@ -28,6 +28,7 @@ import org.eclipse.search.ui.ISearchQuery;
import org.eclipse.search.ui.ISearchResult;
import org.eclipse.search.ui.NewSearchUI;
import org.eclipse.search.ui.text.Match;
+import org.eclipse.ui.PlatformUI;
/**
* Used for returning results from Eclipse Search view. Collects results of a
@@ -56,7 +57,11 @@ public class SearchHitCollector extends QueryHitCollector implements ISearchQuer
public void aboutToStart(int startMatchCount) throws CoreException {
super.aboutToStart(startMatchCount);
searchResult.removeAll();
- NewSearchUI.activateSearchResultView();
+ PlatformUI.getWorkbench().getDisplay().asyncExec(new Runnable() {
+ public void run() {
+ NewSearchUI.activateSearchResultView();
+ }
+ });
}
@Override

Back to the top