Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Mylyn » Query TaskRepository for Resource
Query TaskRepository for Resource [message #64730] Mon, 02 February 2009 13:56 Go to next message
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] Thu, 05 February 2009 02:24 Go to previous message
Steffen Pingel is currently offline Steffen Pingel
Messages: 706
Registered: July 2009
Senior Member
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] Thu, 05 February 2009 02:24 Go to previous message
Steffen Pingel is currently offline Steffen Pingel
Messages: 706
Registered: July 2009
Senior Member
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
Previous Topic:Possible feature request
Next Topic:WikiText and Bugzilla
Goto Forum:
  


Current Time: Fri Oct 24 16:17:08 GMT 2014

Powered by FUDForum. Page generated in 0.03583 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software