Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorspingel2008-04-21 03:51:10 -0400
committerspingel2008-04-21 03:51:10 -0400
commitd7f51d7a8b904911b2c0d7eb8d30e3d6f166f9ff (patch)
treecd78bddc82fa75ece20428d421b398def93f4d3d /org.eclipse.mylyn.trac.core
parentf2a76a0cd5097c3799c467f9e27768a001405be6 (diff)
downloadorg.eclipse.mylyn.tasks-d7f51d7a8b904911b2c0d7eb8d30e3d6f166f9ff.tar.gz
org.eclipse.mylyn.tasks-d7f51d7a8b904911b2c0d7eb8d30e3d6f166f9ff.tar.xz
org.eclipse.mylyn.tasks-d7f51d7a8b904911b2c0d7eb8d30e3d6f166f9ff.zip
NEW - bug 225033: [api] ensure consistent naming of API classes and methods
https://bugs.eclipse.org/bugs/show_bug.cgi?id=225033
Diffstat (limited to 'org.eclipse.mylyn.trac.core')
-rw-r--r--org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/TracRepositoryConnector.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/TracRepositoryConnector.java b/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/TracRepositoryConnector.java
index da815367a..41775499f 100644
--- a/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/TracRepositoryConnector.java
+++ b/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/TracRepositoryConnector.java
@@ -262,7 +262,11 @@ public class TracRepositoryConnector extends AbstractRepositoryConnector {
task.setSummary(taskData.getSummary());
task.setOwner(taskData.getAttributeValue(RepositoryTaskAttribute.USER_ASSIGNED));
- task.setCompleted(TracTask.isCompleted(taskData.getStatus()));
+ if (TracTask.isCompleted(taskData.getStatus())) {
+ task.setCompletionDate(TracUtils.parseDate(Integer.valueOf(taskData.getLastModified())));
+ } else {
+ task.setCompletionDate(null);
+ }
task.setUrl(taskRepository.getRepositoryUrl() + ITracClient.TICKET_URL + taskData.getTaskId());
String priority = taskData.getAttributeValue(Attribute.PRIORITY.getTracKey());
@@ -273,7 +277,6 @@ public class TracRepositoryConnector extends AbstractRepositoryConnector {
task.setTaskKind((kind != null) ? kind.toString() : null);
tracTask.setSupportsSubtasks(taskDataHandler.canInitializeSubTaskData(null, taskData));
- // TODO: Completion Date
// TODO check return value
return false;

Back to the top