Skip to content
Browse files

JBIDE-15593 - Change WS Tester parm validation to warning, not error, so

user can submit request with bad parms if desired
  • Loading branch information...
1 parent 4b9b497 commit 6d2ce891b1ae42290adb99eac62e09820a59d05e @bfitzpat bfitzpat committed Feb 24, 2014
View
11 plugins/org.jboss.tools.ws.ui/src/org/jboss/tools/ws/ui/dialogs/WSTesterURLInputsDialog.java
@@ -14,6 +14,7 @@
import java.util.StringTokenizer;
import org.eclipse.jface.dialogs.IDialogConstants;
+import org.eclipse.jface.dialogs.IMessageProvider;
import org.eclipse.jface.dialogs.TitleAreaDialog;
import org.eclipse.jface.viewers.CellEditor;
import org.eclipse.jface.viewers.ICellModifier;
@@ -563,6 +564,8 @@ private String validateParmValues() {
/*
* Validate the parameter values and pop up a message for the first invalid value.
+ * Updated for JBIDE-15593 to just show warning, no error, and allow user to submit
+ * request with bad parms if desired.
*/
private void validate() {
// validates two different types of parameters in the url
@@ -571,12 +574,12 @@ private void validate() {
String errorMessage = validateParmValues();
boolean hasError = errorMessage.trim().length() > 0;
if (hasError) {
- setErrorMessage(errorMessage);
+ setMessage(errorMessage, IMessageProvider.WARNING);
}
else
- setErrorMessage(null);
- if (this.mOKButton != null && !this.mOKButton.isDisposed())
- this.mOKButton.setEnabled(!hasError);
+ setMessage(JBossWSUIMessages.WSTesterURLInputsDialog_DialogMessage);
+// if (this.mOKButton != null && !this.mOKButton.isDisposed())
+// this.mOKButton.setEnabled(!hasError);
}
/*

0 comments on commit 6d2ce89

Please sign in to comment.
Something went wrong with that request. Please try again.