Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsQuery TaskRepository for Resource
https://www.eclipse.org/forums/index.php/mv/msg/20173/64730/#msg_64730
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.
The TasksUiPlugin class is internal, is there a public api which can be
used to query the TaskRepository for a resource?
Christoph]]>2009-02-02T13:56:58-00:00Re: Query TaskRepository for Resource
https://www.eclipse.org/forums/index.php/mv/msg/20173/596002/#msg_596002
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]]>Steffen Pingel2009-02-05T02:24:06-00:00Re: Query TaskRepository for Resource
https://www.eclipse.org/forums/index.php/mv/msg/20173/64848/#msg_64848
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.