Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorspingel2011-01-06 14:45:27 -0500
committerspingel2011-01-06 14:45:27 -0500
commit9a50ceb9e362dd5f597bbb4673d3dda32c96da1a (patch)
treebb97846fb098493f27ad2abbf7dfa60381a79715
parent2db6b9812230ec450c00309ff6a1d345e80d2162 (diff)
downloadorg.eclipse.mylyn.tasks-9a50ceb9e362dd5f597bbb4673d3dda32c96da1a.tar.gz
org.eclipse.mylyn.tasks-9a50ceb9e362dd5f597bbb4673d3dda32c96da1a.tar.xz
org.eclipse.mylyn.tasks-9a50ceb9e362dd5f597bbb4673d3dda32c96da1a.zip
NEW - bug 330024: Quick outline shows id instead of key for related tasks
https://bugs.eclipse.org/bugs/show_bug.cgi?id=330024
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorOutlineNode.java12
1 files changed, 8 insertions, 4 deletions
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorOutlineNode.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorOutlineNode.java
index 8b20b2a4a..badcedf59 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorOutlineNode.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorOutlineNode.java
@@ -134,11 +134,15 @@ public class TaskEditorOutlineNode {
ITask task = taskList.getTask(taskData.getRepositoryUrl(), taskRelation.getTaskId());
String label;
if (task != null) {
- label = NLS.bind(Messages.TaskEditorOutlineNode_TaskRelation_Label, new Object[] {
- taskRelation.getTaskId(), task.getSummary() });
+ if (task.getTaskKey() != null) {
+ label = NLS.bind(Messages.TaskEditorOutlineNode_TaskRelation_Label,
+ new Object[] { task.getTaskKey(), task.getSummary() });
+ } else {
+ label = task.getSummary();
+ }
} else {
- label = NLS.bind(Messages.TaskEditorOutlineNode_TaskRelation_Label, new Object[] {
- taskRelation.getTaskId(), Messages.TaskEditorOutlineNode_unknown_Label });
+ label = NLS.bind(Messages.TaskEditorOutlineNode_TaskRelation_Label,
+ new Object[] { taskRelation.getTaskId(), Messages.TaskEditorOutlineNode_unknown_Label });
}
TaskEditorOutlineNode childNode = new TaskEditorOutlineNode(label);

Back to the top