| 
| Query TaskRepository for Resource [message #64730] | Mon, 02 February 2009 08:56  |  | 
| Eclipse User  |  |  |  |  | Originally posted by: maitscha.gmx.at 
 Hi!
 
 I would like to create a new task programmatically. I would like to use
 the task repository which is configured for the project.
 
 
 TaskRepository repo =
 TasksUiPlugin.getDefault().getRepositoryForResource(project) ;
 
 ITaskMapping mapping = new TaskMapping() {
 // my own task mapping implementation
 };
 
 TasksUiUtil.openNewTaskEditor(shell, mapping, repo);
 
 
 The TasksUiPlugin class is internal, is there a public api which can be
 used to query the TaskRepository for a resource?
 
 
 Christoph
 |  |  |  | 
| 
| Re: Query TaskRepository for Resource [message #64848 is a reply to message #64730] | Wed, 04 February 2009 21:24  |  | 
| Eclipse User  |  |  |  |  | Development related questions are best addressed to the mailing list: 
 http://www.eclipse.org/mylyn/developers/
 
 > I would like to create a new task programmatically. I would like to use
 > the task repository which is configured for the project.
 >
 >
 > TaskRepository repo =
 >  TasksUiPlugin.getDefault().getRepositoryForResource(project) ;
 >
 > ITaskMapping mapping = new TaskMapping() {
 >    // my own task mapping implementation
 > };
 >
 > TasksUiUtil.openNewTaskEditor(shell, mapping, repo);
 >
 >
 > The TasksUiPlugin class is internal, is there a public api which can be
 > used to query the TaskRepository for a resource?
 
 If you would like to see the method promoted to API I would recommend to
 file a bug with an [api] tag in the summary and we can consider it for a
 future release.
 
 Steffen
 |  |  |  | 
| 
| Re: Query TaskRepository for Resource [message #596002 is a reply to message #64730] | Wed, 04 February 2009 21:24  |  | 
| Eclipse User  |  |  |  |  | Development related questions are best addressed to the mailing list: 
 http://www.eclipse.org/mylyn/developers/
 
 > I would like to create a new task programmatically. I would like to use
 > the task repository which is configured for the project.
 >
 >
 > TaskRepository repo =
 >  TasksUiPlugin.getDefault().getRepositoryForResource(project) ;
 >
 > ITaskMapping mapping = new TaskMapping() {
 >    // my own task mapping implementation
 > };
 >
 > TasksUiUtil.openNewTaskEditor(shell, mapping, repo);
 >
 >
 > The TasksUiPlugin class is internal, is there a public api which can be
 > used to query the TaskRepository for a resource?
 
 If you would like to see the method promoted to API I would recommend to
 file a bug with an [api] tag in the summary and we can consider it for a
 future release.
 
 Steffen
 |  |  |  | 
Powered by 
FUDForum. Page generated in 0.04686 seconds