Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsminto2005-08-09 16:12:52 +0000
committersminto2005-08-09 16:12:52 +0000
commit38dae1dd160e796232eb9df0a7c58c46bec650ca (patch)
tree293158db2766c73c2e01956d9d53d60418bfb383 /org.eclipse.mylyn.tasks.ui
parent3e4c04ea3935447ff69c529e291e158c63dd30d2 (diff)
downloadorg.eclipse.mylyn.tasks-38dae1dd160e796232eb9df0a7c58c46bec650ca.tar.gz
org.eclipse.mylyn.tasks-38dae1dd160e796232eb9df0a7c58c46bec650ca.tar.xz
org.eclipse.mylyn.tasks-38dae1dd160e796232eb9df0a7c58c46bec650ca.zip
added support for getting an xml string
Diffstat (limited to 'org.eclipse.mylyn.tasks.ui')
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/TaskListManager.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/TaskListManager.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/TaskListManager.java
index 95ac67606..2380536b7 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/TaskListManager.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/TaskListManager.java
@@ -178,4 +178,13 @@ public class TaskListManager {
public ITask getTaskForHandle(String handle) {
return taskList.getTaskForHandle(handle);
}
+
+ public String toXmlString() {
+ try {
+ return MylarTasklistPlugin.getDefault().getTaskListExternalizer().getTaskListXml(taskList);
+ } catch (Exception e) {
+ MylarPlugin.fail(e, "Could not save task list", true);
+ }
+ return null;
+ }
}

Back to the top