Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSam Davis2012-04-16 16:32:06 -0400
committerSam Davis2012-04-16 16:32:12 -0400
commit5187af40774c91900bebc774c60d11f94cc1188f (patch)
tree9c7cbd488f69794a108f1f24b064b0fdfc02c889 /org.eclipse.mylyn.tasks.ui
parent24ed4e5308abdb6fee455a526ec22d4266c7e46a (diff)
downloadorg.eclipse.mylyn.tasks-5187af40774c91900bebc774c60d11f94cc1188f.tar.gz
org.eclipse.mylyn.tasks-5187af40774c91900bebc774c60d11f94cc1188f.tar.xz
org.eclipse.mylyn.tasks-5187af40774c91900bebc774c60d11f94cc1188f.zip
NEW - bug 376916: displayStatus should still display something when the
status has no message https://bugs.eclipse.org/bugs/show_bug.cgi?id=376916
Diffstat (limited to 'org.eclipse.mylyn.tasks.ui')
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/util/Messages.java2
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/util/TasksUiInternal.java3
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/util/messages.properties1
3 files changed, 6 insertions, 0 deletions
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/util/Messages.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/util/Messages.java
index 7b98b0e65..4bc28c221 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/util/Messages.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/util/Messages.java
@@ -97,6 +97,8 @@ public class Messages extends NLS {
public static String TasksUiInternal_Activate_Task;
+ public static String TasksUiInternal_An_unknown_error_occurred;
+
public static String TasksUiInternal_Failed_to_open_task;
public static String TasksUiInternal_No_repository_found;
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/util/TasksUiInternal.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/util/TasksUiInternal.java
index 78ee0ffd0..f31be1a09 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/util/TasksUiInternal.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/util/TasksUiInternal.java
@@ -555,6 +555,9 @@ public class TasksUiInternal {
((RepositoryStatus) status).getHtmlMessage());
} else {
String message = status.getMessage();
+ if (message == null || message.trim().length() == 0) {
+ message = Messages.TasksUiInternal_An_unknown_error_occurred;
+ }
if (showLinkToErrorLog) {
message += "\n\n" + Messages.TasksUiInternal_See_error_log_for_details; //$NON-NLS-1$
}
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/util/messages.properties b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/util/messages.properties
index 864a839ce..fd7e6b931 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/util/messages.properties
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/util/messages.properties
@@ -49,6 +49,7 @@ TasksUiInternal__minutes_=\ minutes
TasksUiInternal__second=\ second
TasksUiInternal__seconds=\ seconds
TasksUiInternal_Activate_Task=Activate Task
+TasksUiInternal_An_unknown_error_occurred=An unknown error occurred.
TasksUiInternal_Failed_to_open_task=Failed to Open Task
TasksUiInternal_No_repository_found=No repository found for task. Please create repository in Task Repositories view.
TasksUiInternal_Rename_Category_Message=New &Name:

Back to the top