.getRepositoryConnector(newRepository.getConnectorKind());
Set<ITask> tasksToMigrate = Sets.filter(getTaskList().getTasks(oldRepository.getRepositoryUrl()),
isTaskForConnector(oldRepository.getConnectorKind()));
migrateTasks(tasksToMigrate, oldRepository, newRepository, newConnector, monitor);
}
<BUG>monitor.subTask("Waiting for tasks to synchronize");
getSyncTaskJobListener().start();</BUG>
while (!getSyncTaskJobListener().isComplete()) {
try {
Thread.sleep(100);

.getRepositoryConnector(newRepository.getConnectorKind());
Set<ITask> tasksToMigrate = Sets.filter(getTaskList().getTasks(oldRepository.getRepositoryUrl()),
isTaskForConnector(oldRepository.getConnectorKind()));
migrateTasks(tasksToMigrate, oldRepository, newRepository, newConnector, monitor);
}
monitor.subTask(Messages.ConnectorMigrator_Waiting_for_tasks_to_synchronize);
getSyncTaskJobListener().start();
while (!getSyncTaskJobListener().isComplete()) {
try {
Thread.sleep(100);
