Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.mylyn.tasks.core')
-rw-r--r--org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/TaskDataManager.java5
-rw-r--r--org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/TaskRepositoryFilter.java7
2 files changed, 8 insertions, 4 deletions
diff --git a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/TaskDataManager.java b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/TaskDataManager.java
index 45526bb25..2dc480340 100644
--- a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/TaskDataManager.java
+++ b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/TaskDataManager.java
@@ -106,7 +106,6 @@ public class TaskDataManager {
}
private boolean restoreFromBackup() {
- MylarStatusHandler.log("Restoring offline data from backup", this);
this.primaryFile = primaryPath.toFile();
this.backupFile = backupPath.toFile();
@@ -124,9 +123,7 @@ public class TaskDataManager {
} else {
MylarStatusHandler.log("Unable to restore from offline backup", this);
}
- } else {
- MylarStatusHandler.log("No offline backup found", this);
- }
+ }
return false;
}
diff --git a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/TaskRepositoryFilter.java b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/TaskRepositoryFilter.java
index 6c8fb352d..214fb2cba 100644
--- a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/TaskRepositoryFilter.java
+++ b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/TaskRepositoryFilter.java
@@ -11,6 +11,7 @@
package org.eclipse.mylyn.tasks.core;
+import org.eclipse.mylyn.internal.tasks.core.LocalRepositoryConnector;
/**
* Task repository filter to build list of repositories with required capabilities.
@@ -24,6 +25,12 @@ public interface TaskRepositoryFilter {
return true;
}
};
+
+ public static TaskRepositoryFilter CAN_QUERY = new TaskRepositoryFilter() {
+ public boolean accept(TaskRepository repository, AbstractRepositoryConnector connector) {
+ return !(connector instanceof LocalRepositoryConnector);
+ }
+ };
public static TaskRepositoryFilter CAN_CREATE_NEW_TASK = new TaskRepositoryFilter() {
public boolean accept(TaskRepository repository, AbstractRepositoryConnector connector) {

Back to the top