return new NewTaskWizard(taskRepository, selection);
}
@Override
public IWizard getQueryWizard(TaskRepository taskRepository, IRepositoryQuery queryToEdit) {
RepositoryQueryWizard wizard = new RepositoryQueryWizard(taskRepository);
if (queryToEdit == null || QueryUtils.isCanQuery(queryToEdit)) {
//add the query selection page only for new queries or predefined ones,
//not for existing custom ones
wizard.addPage(new GoogleCodeQuerySelectionPage(taskRepository, queryToEdit));
}
wizard.addPage(new GoogleCodeDefinitionQueryPage(taskRepository, queryToEdit));
return wizard;
}