Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormkersten2006-11-08 01:17:23 -0500
committermkersten2006-11-08 01:17:23 -0500
commit9f9fe12a7ef9e065e174951ba73b5569bd638c44 (patch)
tree2ab4e1c27b455da600d61507d5598a990d8b389f /org.eclipse.mylyn.trac.core/src
parentb42feec5a5fb9b19cf2ac0b3530cd639aeb4cbcf (diff)
downloadorg.eclipse.mylyn.tasks-9f9fe12a7ef9e065e174951ba73b5569bd638c44.tar.gz
org.eclipse.mylyn.tasks-9f9fe12a7ef9e065e174951ba73b5569bd638c44.tar.xz
org.eclipse.mylyn.tasks-9f9fe12a7ef9e065e174951ba73b5569bd638c44.zip
NEW - bug 143260: add offline editing of JIRA tasks
https://bugs.eclipse.org/bugs/show_bug.cgi?id=143260
Diffstat (limited to 'org.eclipse.mylyn.trac.core/src')
-rw-r--r--org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/TracOfflineTaskHandler.java10
1 files changed, 6 insertions, 4 deletions
diff --git a/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/TracOfflineTaskHandler.java b/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/TracOfflineTaskHandler.java
index 30d6d79ea..77bd29208 100644
--- a/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/TracOfflineTaskHandler.java
+++ b/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/TracOfflineTaskHandler.java
@@ -54,7 +54,8 @@ public class TracOfflineTaskHandler implements IOfflineTaskHandler {
this.connector = connector;
}
- public RepositoryTaskData downloadTaskData(TaskRepository repository, String taskId, Proxy proxySettings) throws CoreException {
+ public RepositoryTaskData downloadTaskData(TaskRepository repository, String taskId, Proxy proxySettings)
+ throws CoreException {
int id = Integer.parseInt(taskId);
return downloadTaskData(repository, id);
}
@@ -197,7 +198,7 @@ public class TracOfflineTaskHandler implements IOfflineTaskHandler {
createAttribute(factory, data, Attribute.STATUS, client.getTicketStatus());
createAttribute(factory, data, Attribute.RESOLUTION, client.getTicketResolutions());
}
-
+
createAttribute(factory, data, Attribute.COMPONENT, client.getComponents());
createAttribute(factory, data, Attribute.VERSION, client.getVersions(), true);
createAttribute(factory, data, Attribute.PRIORITY, client.getPriorities());
@@ -214,7 +215,7 @@ public class TracOfflineTaskHandler implements IOfflineTaskHandler {
createAttribute(factory, data, Attribute.CC);
createAttribute(factory, data, Attribute.KEYWORDS);
-
+
if (!existingTask) {
createAttribute(factory, data, Attribute.SUMMARY);
createAttribute(factory, data, Attribute.DESCRIPTION);
@@ -284,7 +285,8 @@ public class TracOfflineTaskHandler implements IOfflineTaskHandler {
}
return result;
} catch (Exception e) {
- throw new CoreException(new Status(IStatus.ERROR, TracCorePlugin.PLUGIN_ID, IStatus.OK, "could not determine changed tasks", e));
+ throw new CoreException(new Status(IStatus.ERROR, TracCorePlugin.PLUGIN_ID, IStatus.OK,
+ "could not determine changed tasks", e));
}
}
}

Back to the top