Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 371010 - [api] provide abstracted priority mapping
Summary: [api] provide abstracted priority mapping
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.7   Edit
Assignee: Steffen Pingel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-08 16:25 EST by Thomas Ehrnhoefer CLA
Modified: 2012-02-11 08:42 EST (History)
0 users

See Also:


Attachments
mylyn/context/zip (45.58 KB, application/octet-stream)
2012-02-11 08:42 EST, Steffen Pingel CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Ehrnhoefer CLA 2012-02-08 16:25:00 EST
Most connectors have a different number than 5 for priority options.
Some framework support for trying to map any ordered collection of priorities into those 5 buckets in Mylyn would be great. I assume lots of connectors implement something like this (most of them hardcoded), but also lots of connectors will have customizable options, so a generic approach seems like a good solution (of course with the connector being able to override that behaviour)
Comment 1 Steffen Pingel CLA 2012-02-08 16:34:19 EST
I'll look into extracting the code from the Trac connector to a reusable framework utility.
Comment 2 Steffen Pingel CLA 2012-02-11 08:42:18 EST
I have added PriorityLevel.fromValue() which returns a mapped value based on a list of priorities and a priority value.
Comment 3 Steffen Pingel CLA 2012-02-11 08:42:21 EST
Created attachment 210883 [details]
mylyn/context/zip