Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 334721 - [api] determine the task for which an AttributeEditor control is used
Summary: [api] determine the task for which an AttributeEditor control is used
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Mylyn (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: 3.5   Edit
Assignee: David Green CLA
QA Contact:
URL:
Whiteboard:
Keywords: contributed
Depends on:
Blocks:
 
Reported: 2011-01-18 18:15 EST by David Green CLA
Modified: 2011-01-27 15:20 EST (History)
1 user (show)

See Also:


Attachments
patch that sets the taskAttribute as data on the control of every attribute editor (851 bytes, patch)
2011-01-18 18:16 EST, David Green CLA
steffen.pingel: iplog+
Details | Diff
mylyn/context/zip (2.68 KB, application/octet-stream)
2011-01-18 18:16 EST, David Green CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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!