Skip to main content


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 UserFriend
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 PingelFriend
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 PingelFriend
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:Bugzilla connector fails after Mylyn update 3.0.4
Next Topic:Jira Hyperlinks in Code
Goto Forum:
  


Current Time: Fri Dec 27 00:16:21 GMT 2024

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

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

Back to the top