public IStatus performQuery(TaskRepository repository, IRepositoryQuery mylynQuery,
TaskDataCollector collector, ISynchronizationSession session, IProgressMonitor monitor) {
try {
IGoogleCodeClient client = getClient(repository);
IssuesFeed issues;
if (mylynQuery.getAttributes().isEmpty()) {
issues = client.getAllIssues(monitor);
} else {
IssuesQuery googleQuery = client.createNewIssuesQuery();
QueryUtils.copyAttributes(mylynQuery, googleQuery);
googleQuery.setMaxResults(Integer.MAX_VALUE);
issues = client.getQueryIssues(googleQuery, monitor);
}
for (IssuesEntry issue : issues.getEntries()) {
TaskData data = this.taskDataHandler.updateTaskData(repository, issue, monitor);
collector.accept(data);
}
return Status.OK_STATUS;
} catch (CoreException e) {