Bug 436128 - [api] connectors can map between unselected priority options and PriorityLevels so that priority icons are shown in PriorityEditor
Summary: [api] connectors can map between unselected priority options and PriorityLeve...
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Mylyn (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 enhancement (vote)
Target Milestone: 3.20   Edit
Assignee: Brandon Dong CLA
QA Contact:
URL:
Whiteboard:
Keywords: contributed, noteworthy
Depends on:
Blocks:
 
Reported: 2014-05-28 19:14 EDT by Sam Davis CLA
Modified: 2016-06-09 20:32 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sam Davis CLA 2014-05-28 19:14:33 EDT
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.
Comment 1 Sam Davis CLA 2014-05-28 19:23:22 EDT
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/
Comment 2 Sam Davis CLA 2014-05-28 19:55:04 EDT
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.
Comment 3 Sam Davis CLA 2014-05-28 20:05:31 EDT
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.
Comment 4 Eclipse Genie CLA 2016-06-06 14:23:31 EDT
New Gerrit change created: https://git.eclipse.org/r/74702
Comment 5 Sam Davis CLA 2016-06-07 16:29:57 EDT
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.
Comment 7 Sam Davis CLA 2016-06-09 20:32:13 EDT
PriorityLevel getPriorityLevel(TaskAttribute priorityAttribute, String priorityOption)  was added to TaskAttributeMapper. static boolean isValidPriority(String string) was added to PriorityLevel.