Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrandon Dong2016-01-27 00:00:37 +0000
committerGerrit Code Review @ Eclipse.org2016-02-26 23:03:25 +0000
commit3965aae570d82102f6befe14dac0d56d99f74c1c (patch)
tree728d6d49050a71b7886a55a7435247242d053f6a /org.eclipse.mylyn.tasks.search
parentcc7f16234f4428da36783b2b3debcc7a450bb17d (diff)
downloadorg.eclipse.mylyn.tasks-3965aae570d82102f6befe14dac0d56d99f74c1c.tar.gz
org.eclipse.mylyn.tasks-3965aae570d82102f6befe14dac0d56d99f74c1c.tar.xz
org.eclipse.mylyn.tasks-3965aae570d82102f6befe14dac0d56d99f74c1c.zip
487166: Task search only uses id if not found in tasklist
Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=487166 Change-Id: I3f94959523bf7366abdeeb6ee6f9224184ec8b1f Signed-off-by: Brandon Dong <brandon.dong@tasktop.com>
Diffstat (limited to 'org.eclipse.mylyn.tasks.search')
-rw-r--r--org.eclipse.mylyn.tasks.search/src/org/eclipse/mylyn/internal/tasks/ui/TaskSearchPage.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/org.eclipse.mylyn.tasks.search/src/org/eclipse/mylyn/internal/tasks/ui/TaskSearchPage.java b/org.eclipse.mylyn.tasks.search/src/org/eclipse/mylyn/internal/tasks/ui/TaskSearchPage.java
index b0e4ed941..75cbcf9ba 100644
--- a/org.eclipse.mylyn.tasks.search/src/org/eclipse/mylyn/internal/tasks/ui/TaskSearchPage.java
+++ b/org.eclipse.mylyn.tasks.search/src/org/eclipse/mylyn/internal/tasks/ui/TaskSearchPage.java
@@ -28,6 +28,7 @@ import org.eclipse.jface.operation.IRunnableContext;
import org.eclipse.mylyn.commons.core.StatusHandler;
import org.eclipse.mylyn.commons.ui.CommonImages;
import org.eclipse.mylyn.internal.tasks.ui.search.SearchHitCollector;
+import org.eclipse.mylyn.internal.tasks.ui.util.TasksUiInternal;
import org.eclipse.mylyn.internal.tasks.ui.views.TaskListView;
import org.eclipse.mylyn.tasks.core.AbstractRepositoryConnector;
import org.eclipse.mylyn.tasks.core.IRepositoryQuery;
@@ -110,7 +111,7 @@ public class TaskSearchPage extends DialogPage implements ISearchPage {
String key = keyText.getText();
if (key != null && key.trim().length() > 0) {
key = key.trim();
- boolean openSuccessful = TasksUiUtil.openTask(repository, key);
+ boolean openSuccessful = TasksUiInternal.openTaskByIdOrKey(repository, key, null);
if (!openSuccessful) {
MessageDialog.openInformation(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(),
Messages.TaskSearchPage_Task_Search, Messages.TaskSearchPage_No_task_found_matching_key_ + key);

Back to the top