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.java9
1 files changed, 8 insertions, 1 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 90cb2c7e3..240dca7b6 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
@@ -506,7 +506,14 @@ public abstract class AbstractRepositoryTaskEditor extends TaskFormPage {
AbstractRepositoryConnectorUi connectorUi = TasksUiPlugin.getConnectorUi(repository.getConnectorKind());
String kindLabel = "";
if (connectorUi != null) {
- kindLabel = connectorUi.getTaskKindLabel(repositoryTask);
+
+ if (repositoryTask != null && taskData != null && !taskData.isNew()) {
+ kindLabel = connectorUi.getTaskKindLabel(repositoryTask);
+ } else {
+ if (taskData != null) {
+ kindLabel = connectorUi.getTaskKindLabel(taskData);
+ }
+ }
}
String idLabel = "";

Back to the top