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

Bug 367372

Summary: [api] provide list of required attributes for task initialization
Product: z_Archived Reporter: Thomas Ehrnhoefer <thomas.ehrnhoefer>
Component: MylynAssignee: Project Inbox <mylyn-triaged>
Status: CLOSED MOVED QA Contact:
Severity: normal    
Priority: P3 CC: jacek.kisynski
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Bug Depends on:    
Bug Blocks: 290606    

Description Thomas Ehrnhoefer CLA 2011-12-21 16:37:00 EST
Some connectors require certain initialization data (e.g. a task type, a product) set before the task data (and thus the editor) is created.

Right now, Mylyn lets the NewTaskEditor of a connector handle setting that and making sure they are valid. I think this should be made more explicit, in order to make sure that when "initializeTaskData" is called, the right set of values are passed in using an ITaskMapping instance.

Not perfectly certain how to best implement this.

The use case is that for my application, before calling "initializeTaskData", I want to make sure that I have all the information the connector needs (e.g. a product), and if not, provide UI feedback, rather than relying on the error message of the connector giving me enough information so this can be displayed to the user.
Comment 1 Steffen Pingel CLA 2012-03-23 19:09:45 EDT
Agreed. This should be considered as part of an effort to provide an abstraction for repository configuration.
Comment 2 Eclipse Webmaster CLA 2022-11-15 11:45:08 EST
Mylyn has been restructured, and our issue tracking has moved to GitHub [1].

We are closing ~14K Bugzilla issues to give the new team a fresh start. If you feel that this issue is still relevant, please create a new one on GitHub.

[1] https://github.com/orgs/eclipse-mylyn