Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Mylyn » Programmatically Update Repositories
Programmatically Update Repositories [message #924794] Thu, 27 September 2012 06:07
André Meyer is currently offline André MeyerFriend
Messages: 4
Registered: August 2012
Junior Member
Hi at all

I am working on my work item (tasks, bugs) access of Mylyn-data... Before I start the access, I want to make sure to work with the most current data. Therefore, I want to refresh all repositories, what I am currently doing this way:

IRepositoryManager repositoryManager = TasksUi.getRepositoryManager();

List<TaskRepository> repositories = repositoryManager.getAllRepositories();

for (TaskRepository r : repositories) {



There also would be the possibility of doing something like "synchronizeAllRepositories(true);" but I want to do it in the background.

This works fine. But I want my program to wait for this action to complete. How can I achieve this. I found "TasksUiPlugin.getSynchronizationScheduler()", but was not sure how to use this information. Or is there any property I can manually check or event I can subscribe?

Thanks for your help!

Best regards,

André Meyer
Previous Topic:Access changesets (ChangeSetManager) via Mylyn
Next Topic:Mylyn 3.8.2?
Goto Forum:

Current Time: Tue Sep 27 02:50:05 GMT 2022

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

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

Back to the top