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

Bug 334721

Summary: [api] determine the task for which an AttributeEditor control is used
Product: z_Archived Reporter: David Green <greensopinion>
Component: MylynAssignee: David Green <greensopinion>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: steffen.pingel
Version: unspecifiedKeywords: contributed
Target Milestone: 3.5   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
patch that sets the taskAttribute as data on the control of every attribute editor
steffen.pingel: iplog+
mylyn/context/zip none

Description David Green CLA 2011-01-18 18:15:56 EST
It would be great if it were possible to know the TaskData for controls created when using @org.eclipse.mylyn.tasks.ui.editors.AbstractTaskEditorExtension@.  This would enable task editor extensions to provide commands that relate to the task for which the extension was used.

See the attached patch
Comment 1 David Green CLA 2011-01-18 18:16:36 EST
Created attachment 187062 [details]
patch that sets the taskAttribute as data on the control of every attribute editor
Comment 2 David Green CLA 2011-01-18 18:16:39 EST
Created attachment 187063 [details]
mylyn/context/zip
Comment 3 Steffen Pingel CLA 2011-01-19 22:26:50 EST
Thanks David. I'll look into adding this. Should be easy enough.
Comment 4 Steffen Pingel CLA 2011-01-26 02:10:16 EST
Thanks David. I have added a constant AbstractAttributeEditor.KEY_TASK_ATTRIBUTE that is used as the key to store the task attribute.
Comment 5 David Green CLA 2011-01-27 15:20:13 EST
Thanks Steffen!