| Summary: | selected category should come checked in "Move to" context menu | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | Willian Mitsuda <wmitsuda> | ||||||
| Component: | Mylyn | Assignee: | Willian Mitsuda <wmitsuda> | ||||||
| Status: | RESOLVED FIXED | QA Contact: | |||||||
| Severity: | minor | ||||||||
| Priority: | P4 | CC: | steffen.pingel | ||||||
| Version: | dev | Keywords: | helpwanted | ||||||
| Target Milestone: | 3.0 | ||||||||
| Hardware: | PC | ||||||||
| OS: | Windows Vista | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
|
Description
Willian Mitsuda
Good idea. Interested in a patch? Sure. This would be an easy one. Created attachment 92000 [details]
Patch
This patch turns the category actions into radio-type, and it cames pre-selected with the current category from selected task.
If there are more than 1 selected task (when this menu is triggered from task list this is possible), it does not pre-selects anything.
The current API makes it possible to a task to have more than 1 category, but I'm not handling this case since all the current UI does not permit this situation.
I made manual tests and it seems to work fine.
Created attachment 92001 [details]
mylyn/context/zip
BTW, just for curiosity: you use an custom extension org.eclipse.mylyn.tasks.ui.actions/dynamicPopupMenu. What feature this extension provides that the standard menu extension mechanism from platform does not provide? (In reply to comment #5) > BTW, just for curiosity: you use an custom extension > org.eclipse.mylyn.tasks.ui.actions/dynamicPopupMenu. > > What feature this extension provides that the standard menu extension mechanism > from platform does not provide? It provides dynamic menu population that's used by higlighters and the Schedule menu. We added that before Eclipse had an extension point for this, but I believe that as of 3.3 dynamic menu population is possible, right? Patch applied and verified. Thanks Willian! Mik, just 1 minor typo in MoveToCategoryMenuContributor: you renamed "elem" to "elemement". Oops, thanks, fixed. |