Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 322449

Summary: overload for TaskUiInternal.createAndOpenNewTask
Product: z_Archived Reporter: Kilian Matt <kilian.matt>
Component: MylynAssignee: Kilian Matt <kilian.matt>
Status: CLOSED INVALID QA Contact:
Severity: enhancement    
Priority: P3 CC: mario.bernhart, mn, steffen.pingel
Version: dev   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
Patch, which adds the overload none

Description Kilian Matt CLA 2010-08-11 20:11:03 EDT
The method TaskUiInternal.createAndOpenNewTask(TaskData taskData) creates a new outgoing task by calling TasksUiUtil.createOutgoingNewTask. 
For more flexibility there should be an overloaded method, which accepts also a ITask parameter.
Comment 1 Kilian Matt CLA 2010-08-11 20:12:53 EDT
Created attachment 176426 [details]
Patch, which adds the overload
Comment 2 Steffen Pingel CLA 2010-08-17 23:19:20 EDT
I am a bit worried that this change enables creation of a task that does not match the task data that is passed to TaskUiInternal.createAndOpenNewTask(). I would prefer if TaskDataManager.saveWorkingCopy() would fire an event instead similar to TaskDataManager.putUpdatedTaskData(). Would that also work for you?
Comment 3 Steffen Pingel CLA 2011-01-04 14:27:08 EST
Kilian, any thought on my last comment?
Comment 4 Kilian Matt CLA 2011-01-04 18:50:44 EST
As I've changed the structure of the review storage quite a bit I don't need that overload anymore, so I would recommend to close this issue.