Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/editors/AbstractRepositoryTaskEditor.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/editors/AbstractRepositoryTaskEditor.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/editors/AbstractRepositoryTaskEditor.java
index 4b42b691f..de3e9dbea 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/editors/AbstractRepositoryTaskEditor.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/editors/AbstractRepositoryTaskEditor.java
@@ -750,9 +750,10 @@ public abstract class AbstractRepositoryTaskEditor extends TaskFormPage {
createTextField(headerInfoComposite, priorityAttribute, SWT.FLAT | SWT.READ_ONLY);
}
- if (repositoryTask != null) {
+ String id = (repositoryTask != null) ? repositoryTask.getIdentifyingLabel() : taskData.getId();
+ if (id != null) {
toolkit.createLabel(headerInfoComposite, " ID: ").setFont(TITLE_FONT);
- toolkit.createText(headerInfoComposite, repositoryTask.getIdentifyingLabel(), SWT.FLAT | SWT.READ_ONLY);
+ toolkit.createText(headerInfoComposite, id, SWT.FLAT | SWT.READ_ONLY);
}
String openedDateString = "";

Back to the top