diff options
author | Sam Davis | 2015-11-25 20:42:14 +0000 |
---|---|---|
committer | Sam Davis | 2015-11-25 21:16:58 +0000 |
commit | 87ae1b0d5411a18b8c69f41fe992bbaaa114860b (patch) | |
tree | 04e145528c3abfac1c946b7545f6493fb6c6b556 /org.eclipse.mylyn.tasks.core/src/org/eclipse | |
parent | 335845982b92dd656e781e26e7ab1d64cc28d049 (diff) | |
download | org.eclipse.mylyn.tasks-87ae1b0d5411a18b8c69f41fe992bbaaa114860b.tar.gz org.eclipse.mylyn.tasks-87ae1b0d5411a18b8c69f41fe992bbaaa114860b.tar.xz org.eclipse.mylyn.tasks-87ae1b0d5411a18b8c69f41fe992bbaaa114860b.zip |
483036: owner ID is not persisted
Change-Id: Idbf3e63a71bb040c3e82eaf3d95180fb4ef1ae4d
Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=483036
Diffstat (limited to 'org.eclipse.mylyn.tasks.core/src/org/eclipse')
-rw-r--r-- | org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/externalization/DelegatingTaskExternalizer.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/externalization/DelegatingTaskExternalizer.java b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/externalization/DelegatingTaskExternalizer.java index 7ad02d505..600209639 100644 --- a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/externalization/DelegatingTaskExternalizer.java +++ b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/externalization/DelegatingTaskExternalizer.java @@ -157,6 +157,8 @@ public final class DelegatingTaskExternalizer { static final String KEY_OWNER = "Owner"; //$NON-NLS-1$ + static final String KEY_OWNER_ID = "OwnerId"; //$NON-NLS-1$ + static final String KEY_MARK_READ_PENDING = "MarkReadPending"; //$NON-NLS-1$ static final String KEY_STALE = "Stale"; //$NON-NLS-1$ @@ -286,6 +288,9 @@ public final class DelegatingTaskExternalizer { if (task.getOwner() != null) { node.setAttribute(KEY_OWNER, task.getOwner()); } + if (task.getOwnerId() != null) { + node.setAttribute(KEY_OWNER_ID, task.getOwnerId()); + } createAttributes(task, doc, node); for (ITask t : task.getChildren()) { createTaskReference(KEY_SUBTASK, t, doc, node); @@ -613,6 +618,9 @@ public final class DelegatingTaskExternalizer { if (element.hasAttribute(KEY_OWNER)) { task.setOwner(element.getAttribute(KEY_OWNER)); } + if (element.hasAttribute(KEY_OWNER_ID)) { + task.setOwnerId(element.getAttribute(KEY_OWNER_ID)); + } if (VAL_TRUE.equals(element.getAttribute(KEY_NOTIFIED_INCOMING))) { task.setNotified(true); } else { |