Community
Participate
Working Groups
When dropping items in the task list view the TaskListDropAdapter currently expects dropped object to be ITasks. It would be helpful if the drop adapter could check for IAdaptables that provide ITasks as well. This would make the view more flexible in supporting other components that work with tasks.
Created attachment 186137 [details] Patch that adds support for IAdaptable to the drop adapter.
Thanks for the patch! The proposed change looks great. To simplify it a bit, could you merge both getTasksFromSelection() methods into a single method and move it to TasksUiInternal? TasksUiUtil is an API class and unless the method is used by clients I would prefer not to expose it. If you setup an API baseline you can detect (unintentional) API changes easily: http://wiki.eclipse.org/Mylyn/Contributor_Reference#API_Baseline . On a very minor style note, it would be nice if you could remove the blank lines in getTasksFromSelection() to match the standard coding conventions.
Created attachment 186226 [details] Patch with changes to getTasksFromSelection()
Created attachment 186227 [details] mylyn/context/zip
Thanks for the comments and suggestions Steffen. I've attached a patch with the requested changes.
Excellent! I have applied the updated patch to head.