Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/wizards/NewQueryWizard.java2
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/wizards/SelectRepositoryPage.java1
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/AbstractRepositoryConnectorUi.java1
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/editors/AbstractRepositoryTaskEditor.java2
6 files changed, 10 insertions, 8 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) {
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/wizards/NewQueryWizard.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/wizards/NewQueryWizard.java
index 91257d3fd..7476f07d5 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/wizards/NewQueryWizard.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/wizards/NewQueryWizard.java
@@ -32,7 +32,7 @@ public class NewQueryWizard extends MultiRepositoryAwareWizard {
private static final class SelectRepositoryPageForNewQuery extends SelectRepositoryPage {
public SelectRepositoryPageForNewQuery() {
- super(TaskRepositoryFilter.ALL);
+ super(TaskRepositoryFilter.CAN_QUERY);
}
@Override
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/wizards/SelectRepositoryPage.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/wizards/SelectRepositoryPage.java
index 3770429c2..abd334343 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/wizards/SelectRepositoryPage.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/wizards/SelectRepositoryPage.java
@@ -215,7 +215,6 @@ public abstract class SelectRepositoryPage extends WizardSelectionPage {
wizard = SelectRepositoryPage.this.createWizard(repository);
wizard.setContainer(getContainer());
}
-
return wizard;
}
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/AbstractRepositoryConnectorUi.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/AbstractRepositoryConnectorUi.java
index bedae69a8..3f88d32a4 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/AbstractRepositoryConnectorUi.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/AbstractRepositoryConnectorUi.java
@@ -19,7 +19,6 @@ import org.eclipse.jface.wizard.IWizard;
import org.eclipse.jface.wizard.WizardDialog;
import org.eclipse.jface.wizard.WizardPage;
import org.eclipse.mylyn.core.MylarStatusHandler;
-import org.eclipse.mylyn.internal.tasks.core.LocalTask;
import org.eclipse.mylyn.internal.tasks.ui.TasksUiImages;
import org.eclipse.mylyn.internal.tasks.ui.wizards.CommonAddExistingTaskWizard;
import org.eclipse.mylyn.tasks.core.AbstractRepositoryConnector;
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 05b70e1b0..559e832ed 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
@@ -304,7 +304,7 @@ public abstract class AbstractRepositoryTaskEditor extends TaskFormPage {
|| repositoryTask.getSyncState() == RepositoryTaskSyncState.CONFLICT) {
// MessageDialog.openInformation(AbstractTaskEditor.this.getSite().getShell(),
// "Changed - " + repositoryTask.getSummary(),
- // "Editor will refresh with new incoming
+ // "Editor will Test with new incoming
// changes.");
parentEditor.setMessage("Task has incoming changes, synchronize to view",
IMessageProvider.WARNING);

Back to the top