Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrank Becker2012-01-31 16:14:41 -0500
committerFrank Becker2012-01-31 16:14:41 -0500
commit97fa0d622ae5d53c449e4050e453cf44b9ea2597 (patch)
tree20840b6b05ba3921a345d4e97b802dd55d454e8b /org.eclipse.mylyn.bugzilla.ui
parent00b12019b22744a0319be904886e0449ca3a89e5 (diff)
downloadorg.eclipse.mylyn.tasks-97fa0d622ae5d53c449e4050e453cf44b9ea2597.tar.gz
org.eclipse.mylyn.tasks-97fa0d622ae5d53c449e4050e453cf44b9ea2597.tar.xz
org.eclipse.mylyn.tasks-97fa0d622ae5d53c449e4050e453cf44b9ea2597.zip
ASSIGNED - bug 356986: [patch] auto detect XML-RPC (was:
IllegalArgumentException when enabling XML-RPC) https://bugs.eclipse.org/bugs/show_bug.cgi?id=356986 Change-Id: Change-Id: I7b5821eaa7e7fc2f16411782398c2304b9c0bb17
Diffstat (limited to 'org.eclipse.mylyn.bugzilla.ui')
-rw-r--r--org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/tasklist/BugzillaRepositorySettingsPage.java25
1 files changed, 25 insertions, 0 deletions
diff --git a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/tasklist/BugzillaRepositorySettingsPage.java b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/tasklist/BugzillaRepositorySettingsPage.java
index 1bd517e63..31d33578d 100644
--- a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/tasklist/BugzillaRepositorySettingsPage.java
+++ b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/tasklist/BugzillaRepositorySettingsPage.java
@@ -741,4 +741,29 @@ public class BugzillaRepositorySettingsPage extends AbstractRepositorySettingsPa
return repository;
}
+ boolean doFinish;
+
+ boolean isvalid;
+
+ @Override
+ public boolean doPerformFinish(TaskRepository repository) {
+ doFinish = true;
+ isvalid = false;
+ validateSettings();
+ doFinish = false;
+ if (!isvalid) {
+ return false;
+ }
+ super.doPerformFinish(repository);
+ return true;
+ }
+
+ @Override
+ protected void applyValidatorResult(Validator validator) {
+ super.applyValidatorResult(validator);
+ if (doFinish) {
+ IStatus status = validator.getStatus();
+ isvalid = IStatus.OK == status.getSeverity();
+ }
+ }
}

Back to the top