Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJaxsun McCarthy Huggan2016-01-26 19:00:37 -0500
committerGerrit Code Review @ Eclipse.org2016-02-01 17:49:31 -0500
commit86a71b8f9f3d06363e499a6550f072acbf3ff57b (patch)
treee518cb3ef24a9b9df534bc7af0fafd8e97d9dfe0 /org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks
parentf0a2759b714e72113cbecd0ef007d25afa14e32d (diff)
downloadorg.eclipse.mylyn.tasks-86a71b8f9f3d06363e499a6550f072acbf3ff57b.tar.gz
org.eclipse.mylyn.tasks-86a71b8f9f3d06363e499a6550f072acbf3ff57b.tar.xz
org.eclipse.mylyn.tasks-86a71b8f9f3d06363e499a6550f072acbf3ff57b.zip
486607: task search page reports accurate error when no searchable
repositories are present * will report that there are no repositories only if there are none * will report repositories do not support search when some exist but search is not supported * will disable the controls if there are no repositories to search Change-Id: Iea3876c0629c131fe024b9c65024d10daa6ef88d Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=486607 Signed-off-by: Jaxsun McCarthy Huggan <jaxsun.mccarthy@tasktop.com>
Diffstat (limited to 'org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks')
-rw-r--r--org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/Messages.java2
-rw-r--r--org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/TaskRepositoryManager.java5
-rw-r--r--org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/messages.properties2
3 files changed, 2 insertions, 7 deletions
diff --git a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/Messages.java b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/Messages.java
index 8f62391ee..dd3a22d7b 100644
--- a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/Messages.java
+++ b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/Messages.java
@@ -35,8 +35,6 @@ public class Messages extends NLS {
public static String RepositoryExternalizationParticipant_Task_Repositories;
- public static String TaskRepositoryManager_No_repository_available;
-
public static String UncategorizedTaskContainer_Uncategorized;
public static String UnmatchedTaskContainer_Unmatched;
diff --git a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/TaskRepositoryManager.java b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/TaskRepositoryManager.java
index cab2b39af..657b7ab26 100644
--- a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/TaskRepositoryManager.java
+++ b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/TaskRepositoryManager.java
@@ -66,8 +66,6 @@ public class TaskRepositoryManager implements IRepositoryManager {
private final Set<TaskRepository> orphanedRepositories = new HashSet<TaskRepository>();
- public static final String MESSAGE_NO_REPOSITORY = Messages.TaskRepositoryManager_No_repository_available;
-
public static final String PREFIX_LOCAL = "local-"; //$NON-NLS-1$
private static final Map<String, Category> repositoryCategories = new HashMap<String, Category>();
@@ -421,7 +419,8 @@ public class TaskRepositoryManager implements IRepositoryManager {
File repositoriesFile = new File(destinationPath);
externalizer.writeRepositoriesToXML(repositoriesToWrite, repositoriesFile);
} catch (Throwable t) {
- StatusHandler.log(new Status(IStatus.ERROR, ITasksCoreConstants.ID_PLUGIN, "Could not save repositories", t)); //$NON-NLS-1$
+ StatusHandler
+ .log(new Status(IStatus.ERROR, ITasksCoreConstants.ID_PLUGIN, "Could not save repositories", t)); //$NON-NLS-1$
return false;
}
return true;
diff --git a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/messages.properties b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/messages.properties
index 4ee411f90..a867a3aa3 100644
--- a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/messages.properties
+++ b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/messages.properties
@@ -16,8 +16,6 @@ LocalRepositoryConnector_New_Task=New Task
RepositoryExternalizationParticipant_Task_Repositories=Task Repositories
-TaskRepositoryManager_No_repository_available=No repository available, please add one using the Task Repositories view.
-
UncategorizedTaskContainer_Uncategorized=Uncategorized
UnmatchedTaskContainer_Unmatched=Unmatched

Back to the top