Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormkersten2006-11-02 11:48:50 -0500
committermkersten2006-11-02 11:48:50 -0500
commit83444fe8adadfbff83ff7288f6d79243b609e2d9 (patch)
tree4fafb5d333becdbef620a45ea549d0486b3f0dc3 /org.eclipse.mylyn.trac.core/src
parentf2beef343f251302cbdbcb89f4e864d42c8fca88 (diff)
downloadorg.eclipse.mylyn.tasks-83444fe8adadfbff83ff7288f6d79243b609e2d9.tar.gz
org.eclipse.mylyn.tasks-83444fe8adadfbff83ff7288f6d79243b609e2d9.tar.xz
org.eclipse.mylyn.tasks-83444fe8adadfbff83ff7288f6d79243b609e2d9.zip
RESOLVED - bug 162651: support search integration for JIRA
https://bugs.eclipse.org/bugs/show_bug.cgi?id=162651
Diffstat (limited to 'org.eclipse.mylyn.trac.core/src')
-rw-r--r--org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/TracQueryHit.java14
-rw-r--r--org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/TracRepositoryConnector.java2
2 files changed, 2 insertions, 14 deletions
diff --git a/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/TracQueryHit.java b/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/TracQueryHit.java
index 7e7e7946e..8fdb3948b 100644
--- a/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/TracQueryHit.java
+++ b/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/TracQueryHit.java
@@ -20,34 +20,22 @@ import org.eclipse.mylar.tasks.core.TaskList;
*/
public class TracQueryHit extends AbstractQueryHit {
- private boolean completed;
-
public TracQueryHit(TaskList taskList, String repositoryUrl, String description, String id) {
super(taskList, repositoryUrl, description, id);
}
public TracQueryHit(TaskList taskList, String handle) {
super(taskList, AbstractRepositoryTask.getRepositoryUrl(handle), "", AbstractRepositoryTask.getTaskId(handle));
- }
+ }
protected AbstractRepositoryTask createTask() {
TracTask newTask = new TracTask(getHandleIdentifier(), getDescription(), true);
- newTask.setCompleted(completed);
newTask.setPriority(priority);
return newTask;
}
- @Override
- public boolean isCompleted() {
- return (task != null) ? task.isCompleted() : completed;
- }
-
public String getUrl() {
return getRepositoryUrl() + ITracClient.TICKET_URL + getId();
}
- public void setCompleted(boolean completed) {
- this.completed = completed;
- }
-
}
diff --git a/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/TracRepositoryConnector.java b/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/TracRepositoryConnector.java
index 3b829b317..08479adf8 100644
--- a/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/TracRepositoryConnector.java
+++ b/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/TracRepositoryConnector.java
@@ -128,8 +128,8 @@ public class TracRepositoryConnector extends AbstractRepositoryConnector {
TracQueryHit hit = new TracQueryHit(taskList, query.getRepositoryUrl(), getTicketDescription(ticket), ticket
.getId()
+ "");
- hit.setCompleted(TracTask.isCompleted(ticket.getValue(Key.STATUS)));
hit.setPriority(TracTask.getMylarPriority(ticket.getValue(Key.PRIORITY)));
+ hit.setCompleted(TracTask.isCompleted(ticket.getValue(Key.STATUS)));
resultCollector.accept(hit);
}
} catch (Throwable e) {

Back to the top