Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorspingel2010-02-08 04:00:26 +0000
committerspingel2010-02-08 04:00:26 +0000
commitc53889f1b283a1bad6d46bee0585b7121750c74e (patch)
tree04e7b59340ecf0049616ea1e5622597e92043ec9 /org.eclipse.mylyn.bugzilla.ui
parent3eafa16f874c738a0ab2210adc412d2a4e7762c1 (diff)
downloadorg.eclipse.mylyn.tasks-c53889f1b283a1bad6d46bee0585b7121750c74e.tar.gz
org.eclipse.mylyn.tasks-c53889f1b283a1bad6d46bee0585b7121750c74e.tar.xz
org.eclipse.mylyn.tasks-c53889f1b283a1bad6d46bee0585b7121750c74e.zip
NEW - bug 293638: do not enable validate until input errors have been resolved
https://bugs.eclipse.org/bugs/show_bug.cgi?id=293638
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.java7
1 files changed, 7 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 248556d0a..1b89602a6 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
@@ -22,6 +22,7 @@ import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.NullProgressMonitor;
import org.eclipse.core.runtime.OperationCanceledException;
+import org.eclipse.jface.dialogs.IMessageProvider;
import org.eclipse.jface.operation.IRunnableWithProgress;
import org.eclipse.mylyn.internal.bugzilla.core.BugzillaClient;
import org.eclipse.mylyn.internal.bugzilla.core.BugzillaClientFactory;
@@ -353,4 +354,10 @@ public class BugzillaRepositorySettingsPage extends AbstractRepositorySettingsPa
return BugzillaCorePlugin.CONNECTOR_KIND;
}
+ @Override
+ public boolean canValidate() {
+ // need to invoke isPageComplete() to trigger message update
+ return isPageComplete() && (getMessage() == null || getMessageType() != IMessageProvider.ERROR);
+ }
+
}

Back to the top