summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteffen Pingel2012-03-09 17:50:06 (EST)
committerSteffen Pingel2012-03-09 17:50:06 (EST)
commit995a8b655823e4a6dbf5cdf64846d2e9701f4616 (patch)
tree62ae89cd2acd90fa0e8cc0919e8bca169323e5ff
parent914e2562e077c9378504cb086c30be4f9165f041 (diff)
downloadorg.eclipse.mylyn.tasks-995a8b655823e4a6dbf5cdf64846d2e9701f4616.zip
org.eclipse.mylyn.tasks-995a8b655823e4a6dbf5cdf64846d2e9701f4616.tar.gz
org.eclipse.mylyn.tasks-995a8b655823e4a6dbf5cdf64846d2e9701f4616.tar.bz2
NEW - bug 373851: validation is not invoked when creating new repository
https://bugs.eclipse.org/bugs/show_bug.cgi?id=373851 Change-Id: Ic3e201a71ee9f58ad51f3b58da2df276786281c4
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/wizards/NewRepositoryWizard.java18
1 files changed, 10 insertions, 8 deletions
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/wizards/NewRepositoryWizard.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/wizards/NewRepositoryWizard.java
index a69192d..d25488b 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/wizards/NewRepositoryWizard.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/wizards/NewRepositoryWizard.java
@@ -112,16 +112,18 @@ public class NewRepositoryWizard extends Wizard implements INewWizard {
public boolean performFinish() {
if (canFinish()) {
taskRepository = new TaskRepository(connector.getConnectorKind(), settingsPage.getRepositoryUrl());
- settingsPage.performFinish(taskRepository);
- TasksUi.getRepositoryManager().addRepository(taskRepository);
-
- if (showNewQueryPromptOnFinish()) {
- if (connector.canQuery(taskRepository)) {
- promptToAddQuery(taskRepository);
+ boolean finishAccepted = settingsPage.preFinish(taskRepository);
+ if (finishAccepted) {
+ settingsPage.performFinish(taskRepository);
+ TasksUi.getRepositoryManager().addRepository(taskRepository);
+
+ if (showNewQueryPromptOnFinish()) {
+ if (connector.canQuery(taskRepository)) {
+ promptToAddQuery(taskRepository);
+ }
}
+ return true;
}
-
- return true;
}
return false;
}