Community
Participate
Working Groups
Priority icons are not shown in PriorityEditor unless the attribute values match those in PriorityLevel. We should add API to allow the level to be looked up for each priority option.
I've created the following review: 27509: [WIP] 436128: [api] connectors can provide the PriorityLevel for a string/priority icons should be shown in PriorityEditor [Ie7a44d09] https://git.eclipse.org/r/#/c/27509/
We need API that doesn't require a task data so that we can show the right priority label in the task list tool tip.
Actually, maybe not. Something like the above review will work for the PriorityEditor. If we also want to show the repository's priority label in the task list tooltip, maybe we just need to provide a standard attribute PRIORITY_LABEL that can be set on the ITask.
New Gerrit change created: https://git.eclipse.org/r/74702
The current API in TaskMapper only allows connectors to map between priority options and PriorityLevels for the selected option. We're adding API to TaskAttributeMapper to allow mapping any option so that PriorityEditor can use it to show the correct icons for unselected priorities. We're also adding a key to store the the priority lable on the ITask so that the tooltip can show the repository's label instead of the corresponding PriorityLevel.
Gerrit change https://git.eclipse.org/r/74702 was merged to [master]. Commit: http://git.eclipse.org/c/mylyn/org.eclipse.mylyn.tasks.git/commit/?id=c7b61a4748ba0ca0687fef5563165c01cfde0dc3
PriorityLevel getPriorityLevel(TaskAttribute priorityAttribute, String priorityOption) was added to TaskAttributeMapper. static boolean isValidPriority(String string) was added to PriorityLevel.