Community
Participate
Working Groups
I use "Move to" context menu to move tasks between categories as I work on them (working, wait feedback, etc.). Often, when reading some task I don't remember if I moved it to corresponding category yet, so I have to go to task list and check if it is in there. It would make my life easier if the "Move to" submenu presented the current category checked.
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.