Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorspingel2008-06-13 10:45:49 +0000
committerspingel2008-06-13 10:45:49 +0000
commitafd3e29b8c715357cc85789600a065e9cabdfb47 (patch)
tree75b9b6cb9c7fb776d4a3f4094221b589e638e82a /org.eclipse.mylyn.trac.ui/src/org/eclipse
parent0fccc76dad599ce804fb0ce645c674add5edf8e3 (diff)
downloadorg.eclipse.mylyn.tasks-afd3e29b8c715357cc85789600a065e9cabdfb47.tar.gz
org.eclipse.mylyn.tasks-afd3e29b8c715357cc85789600a065e9cabdfb47.tar.xz
org.eclipse.mylyn.tasks-afd3e29b8c715357cc85789600a065e9cabdfb47.zip
NEW - bug 218175: replies to comments result in incorrect links
https://bugs.eclipse.org/bugs/show_bug.cgi?id=218175
Diffstat (limited to 'org.eclipse.mylyn.trac.ui/src/org/eclipse')
-rw-r--r--org.eclipse.mylyn.trac.ui/src/org/eclipse/mylyn/internal/trac/ui/TracConnectorUi.java14
1 files changed, 14 insertions, 0 deletions
diff --git a/org.eclipse.mylyn.trac.ui/src/org/eclipse/mylyn/internal/trac/ui/TracConnectorUi.java b/org.eclipse.mylyn.trac.ui/src/org/eclipse/mylyn/internal/trac/ui/TracConnectorUi.java
index 18c204312..876236542 100644
--- a/org.eclipse.mylyn.trac.ui/src/org/eclipse/mylyn/internal/trac/ui/TracConnectorUi.java
+++ b/org.eclipse.mylyn.trac.ui/src/org/eclipse/mylyn/internal/trac/ui/TracConnectorUi.java
@@ -23,6 +23,7 @@ import org.eclipse.mylyn.internal.trac.ui.wizard.TracQueryPage;
import org.eclipse.mylyn.internal.trac.ui.wizard.TracRepositorySettingsPage;
import org.eclipse.mylyn.tasks.core.IRepositoryQuery;
import org.eclipse.mylyn.tasks.core.ITask;
+import org.eclipse.mylyn.tasks.core.ITaskComment;
import org.eclipse.mylyn.tasks.core.ITaskMapping;
import org.eclipse.mylyn.tasks.core.TaskRepository;
import org.eclipse.mylyn.tasks.ui.AbstractRepositoryConnectorUi;
@@ -113,4 +114,17 @@ public class TracConnectorUi extends AbstractRepositoryConnectorUi {
return legendItems;
}
+ @Override
+ public String getReplyText(TaskRepository taskRepository, ITask task, ITaskComment taskComment, boolean includeTask) {
+ if (taskComment == null) {
+ return "Replying to [ticket:" + task.getTaskKey() + " " + task.getOwner() + "]:";
+ } else if (includeTask) {
+ return "Replying to [comment:ticket:" + task.getTaskKey() + ":" + taskComment.getNumber() + " "
+ + taskComment.getAuthor().getPersonId() + "]:";
+ } else {
+ return "Replying to [comment:" + taskComment.getNumber() + " " + taskComment.getAuthor().getPersonId()
+ + "]:";
+ }
+ }
+
}

Back to the top