Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormkersten2007-06-14 17:36:13 -0400
committermkersten2007-06-14 17:36:13 -0400
commitc689ca29a7406c29e85bb5495c7c967588ce46e0 (patch)
tree7b065fdfa4c7b27d474abc6b3028d4e7e48e4fce /org.eclipse.mylyn.tasks.core
parent0065cbd5f10e1c77ae037452fd85ade85685406f (diff)
downloadorg.eclipse.mylyn.tasks-c689ca29a7406c29e85bb5495c7c967588ce46e0.tar.gz
org.eclipse.mylyn.tasks-c689ca29a7406c29e85bb5495c7c967588ce46e0.tar.xz
org.eclipse.mylyn.tasks-c689ca29a7406c29e85bb5495c7c967588ce46e0.zip
NEW - bug 165359: fix UI nits
https://bugs.eclipse.org/bugs/show_bug.cgi?id=165359
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