Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormkersten2007-06-14 20:05:46 -0400
committermkersten2007-06-14 20:05:46 -0400
commit1a35f454db6f5809e027b2775bd8d09fde862da3 (patch)
tree7b22edc94ed4064ce0e3fe638d4de26b3b83d325 /org.eclipse.mylyn.tasks.core
parent7a7cd7469cd99fdffee773d13b0d2a5468b934a3 (diff)
downloadorg.eclipse.mylyn.tasks-1a35f454db6f5809e027b2775bd8d09fde862da3.tar.gz
org.eclipse.mylyn.tasks-1a35f454db6f5809e027b2775bd8d09fde862da3.tar.xz
org.eclipse.mylyn.tasks-1a35f454db6f5809e027b2775bd8d09fde862da3.zip
Version update
Diffstat (limited to 'org.eclipse.mylyn.tasks.core')
-rw-r--r--org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/LocalTask.java4
-rw-r--r--org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/QueryHitCollector.java2
2 files changed, 5 insertions, 1 deletions
diff --git a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/LocalTask.java b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/LocalTask.java
index fd72dc245..b70740a3f 100644
--- a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/LocalTask.java
+++ b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/LocalTask.java
@@ -18,6 +18,8 @@ import org.eclipse.mylyn.tasks.core.AbstractTask;
*/
public class LocalTask extends AbstractTask {
+ public static final String SYNC_DATE_NOW = "now";
+
public LocalTask(String taskId, String summary) {
super(LocalRepositoryConnector.REPOSITORY_URL, taskId, summary);
}
@@ -37,7 +39,7 @@ public class LocalTask extends AbstractTask {
}
public String getLastSyncDateStamp() {
- return "now";
+ return SYNC_DATE_NOW;
}
public String getOwner() {
diff --git a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/QueryHitCollector.java b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/QueryHitCollector.java
index 310e337c3..cd1b9480b 100644
--- a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/QueryHitCollector.java
+++ b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/QueryHitCollector.java
@@ -15,6 +15,7 @@ import java.util.Set;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.NullProgressMonitor;
+import org.eclipse.mylyn.tasks.core.AbstractTask.RepositoryTaskSyncState;
/**
* Collects QueryHits resulting from repository search
@@ -48,6 +49,7 @@ public class QueryHitCollector implements ITaskCollector {
AbstractTask existingTask = taskList.getTask(task.getHandleIdentifier());
if (existingTask == null) {
task.setStale(true);
+ task.setSyncState(RepositoryTaskSyncState.INCOMING);
} else {
// preserve meta attributes of existing task
task.setLastSyncDateStamp(existingTask.getLastSyncDateStamp());

Back to the top