BugzillaTask to RepositoryTaskData? (Tutorial outdated) [message #47334] |
Fri, 18 April 2008 12:48  |
Eclipse User |
|
|
|
Originally posted by: Michail.Greshishchev.klocwork.com
Hello,
The Mylyn wiki for headless use has the following example:
// Post modified report to repository
connector.getTaskDataHandler().postTaskData(repository,
task.getTaskData());
connector is a BugzillaConnector class.
task is a BugzillaTask class.
However, in the latest version of Mylyn task no longer has the
getTaskdata() method.
My question is, how do I convert a BugzillaTask into RepositoryTaskData so
I can send it to a Bugzilla bug tracking database via postTaskData()?
Thank you
|
|
|
Re: BugzillaTask to RepositoryTaskData? (Tutorial outdated) [message #47471 is a reply to message #47334] |
Thu, 24 April 2008 12:23  |
Eclipse User |
|
|
|
Originally posted by: rob.elves.eclipse.org
If you've already synced the task, you can get the task data for it from
the TaskDataManager.
TasksUiPlugin.getTaskDataManager().getNewTaskData(String repositoryUrl,
String id);
Then modifiy the task data as you see fit then submit it via postTaskData().
If this doesn't clear things up, please let me know and I can elaborate.
-Rob
Michail Greshishchev wrote:
> Hello,
>
> The Mylyn wiki for headless use has the following example:
>
> // Post modified report to repository
> connector.getTaskDataHandler().postTaskData(repository,
> task.getTaskData());
>
> connector is a BugzillaConnector class.
> task is a BugzillaTask class.
>
> However, in the latest version of Mylyn task no longer has the
> getTaskdata() method.
>
> My question is, how do I convert a BugzillaTask into RepositoryTaskData
> so I can send it to a Bugzilla bug tracking database via postTaskData()?
>
> Thank you
>
|
|
|
Re: BugzillaTask to RepositoryTaskData? (Tutorial outdated) [message #589201 is a reply to message #47334] |
Thu, 24 April 2008 12:23  |
Eclipse User |
|
|
|
If you've already synced the task, you can get the task data for it from
the TaskDataManager.
TasksUiPlugin.getTaskDataManager().getNewTaskData(String repositoryUrl,
String id);
Then modifiy the task data as you see fit then submit it via postTaskData().
If this doesn't clear things up, please let me know and I can elaborate.
-Rob
Michail Greshishchev wrote:
> Hello,
>
> The Mylyn wiki for headless use has the following example:
>
> // Post modified report to repository
> connector.getTaskDataHandler().postTaskData(repository,
> task.getTaskData());
>
> connector is a BugzillaConnector class.
> task is a BugzillaTask class.
>
> However, in the latest version of Mylyn task no longer has the
> getTaskdata() method.
>
> My question is, how do I convert a BugzillaTask into RepositoryTaskData
> so I can send it to a Bugzilla bug tracking database via postTaskData()?
>
> Thank you
>
|
|
|
Powered by
FUDForum. Page generated in 0.05711 seconds