Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrelves2006-11-14 20:40:00 -0500
committerrelves2006-11-14 20:40:00 -0500
commitdb1567a8da1771e8e4cfc265512f2bc926bad92f (patch)
tree9e9d7220078453ac5f35ffd4d85dcce6e52a20b2 /org.eclipse.mylyn.trac.core/src
parent0e8ba06ed4bb8378432720f6ce194ca3bbe4b9e1 (diff)
downloadorg.eclipse.mylyn.tasks-db1567a8da1771e8e4cfc265512f2bc926bad92f.tar.gz
org.eclipse.mylyn.tasks-db1567a8da1771e8e4cfc265512f2bc926bad92f.tar.xz
org.eclipse.mylyn.tasks-db1567a8da1771e8e4cfc265512f2bc926bad92f.zip
NEW - bug 161820: Fix synchronization of Trac tasks accessed through the web
https://bugs.eclipse.org/bugs/show_bug.cgi?id=161820
Diffstat (limited to 'org.eclipse.mylyn.trac.core/src')
-rw-r--r--org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/TracRepositoryConnector.java13
1 files changed, 11 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 08479adf8..7f7a9660b 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
@@ -107,8 +107,17 @@ public class TracRepositoryConnector extends AbstractRepositoryConnector {
}
@Override
- public void updateTaskState(AbstractRepositoryTask repositoryTask) {
- // TODO Auto-generated method stub
+ public void updateTask(TaskRepository repository, AbstractRepositoryTask repositoryTask) throws CoreException {
+ if (repositoryTask instanceof TracTask) {
+ String id = AbstractRepositoryTask.getTaskId(repositoryTask.getHandleIdentifier());
+ try {
+ ITracClient connection = getClientManager().getRepository(repository);
+ TracTicket ticket = connection.getTicket(Integer.parseInt(id));
+ updateTaskDetails((TracTask) repositoryTask, ticket, false);
+ } catch (Exception e) {
+ throw new CoreException(TracCorePlugin.toStatus(e));
+ }
+ }
}
@Override

Back to the top