Community
Participate
Working Groups
Task deactivation doesn't use a command, so it is not captured in the event stream.
Created attachment 178443 [details] mylyn/context/zip
Does this only happen when the task is deactivated from the task list?
Can you be more specific, Sam? The plugin.xml of o.e.m.tasks.ui specifies a command for deactivating the active task. The id is org.eclipse.mylyn.tasks.ui.command.deactivateSelectedTask .
The command is not used when deactivating the task by clicking the icon in the task list, nor when deactivating a task using the task editor.
Right, can you provide a patch that makes the appropriate changes to ToggleTaskActivationAction etc.? TasksUiInternal.activateTaskThroughCommand() has an example how to programatically invoke a command.
I'll look into it when I get a chance.
Created attachment 178575 [details] fix
Created attachment 178576 [details] mylyn/context/zip
Fixed in e_3_4_m_3_x and head. Task deactivation from the editor and task list should now be facilitated through the org.eclipse.mylyn.tasks.ui.command.deactivateSelectedTask command. Shawn, it woulc be nice if you could do a quick review when you get a chance.