Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSam Davis2015-08-19 20:09:22 +0000
committerSam Davis2015-08-19 22:00:35 +0000
commit5528c60382bc995bcf112133696b4bdaf215f991 (patch)
tree7bbd4aa85bb55315e1f36a486bf54b6277468dd1 /org.eclipse.mylyn.tasks.ui
parent82cd9c122c88a94ef4e7b699b510b40d2991ed11 (diff)
downloadorg.eclipse.mylyn.tasks-5528c60382bc995bcf112133696b4bdaf215f991.tar.gz
org.eclipse.mylyn.tasks-5528c60382bc995bcf112133696b4bdaf215f991.tar.xz
org.eclipse.mylyn.tasks-5528c60382bc995bcf112133696b4bdaf215f991.zip
475428: content assist proposals created from tasks in the task list
should insert the owner ID if it is set on the task Change-Id: Iaf008ac571ef226f0e38ea88958ecc5a521aefbf Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=475428
Diffstat (limited to 'org.eclipse.mylyn.tasks.ui')
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/PersonProposalProvider.java11
1 files changed, 10 insertions, 1 deletions
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/PersonProposalProvider.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/PersonProposalProvider.java
index 725759784..003095993 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/PersonProposalProvider.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/PersonProposalProvider.java
@@ -39,6 +39,8 @@ import org.eclipse.mylyn.tasks.core.data.TaskData;
import org.eclipse.mylyn.tasks.ui.TasksUi;
import org.eclipse.osgi.util.NLS;
+import com.google.common.base.Strings;
+
/**
* @author Shawn Minto
* @author Eugene Kuleshov
@@ -270,7 +272,14 @@ public class PersonProposalProvider implements IContentProposalProvider {
}
private void addAddresses(ITask task, Set<String> addressSet) {
- addAddress(addressSet, task.getOwner());
+ if (Strings.isNullOrEmpty(task.getOwnerId())) {
+ addAddress(addressSet, task.getOwner());
+ } else {
+ addAddress(addressSet, task.getOwnerId());
+ if (!Strings.isNullOrEmpty(task.getOwner())) {
+ proposals.put(task.getOwnerId(), task.getOwner());
+ }
+ }
}
private void addAddresses(TaskData data, Set<String> addressSet) {

Back to the top