Java Code Examples for com.wix.settings.Validator#add()
The following examples show how to use
com.wix.settings.Validator#add() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: SassLintSettingsPage.java From sass-lint-plugin with MIT License | 4 votes |
private void validateField(Validator validator, TextFieldWithHistoryWithBrowseButton field, boolean allowEmpty, String message) { if (!ValidationUtils.validatePath(project, field.getChildComponent().getText(), allowEmpty)) { validator.add(field.getChildComponent().getTextEditor(), message, FIX_IT); } }
Example 2
Source File: ESLintSettingsPage.java From eslint-plugin with MIT License | 4 votes |
private void validateField(Validator validator, TextFieldWithHistoryWithBrowseButton field, boolean allowEmpty, String message) { if (!validatePath(field.getChildComponent().getText(), allowEmpty)) { validator.add(field.getChildComponent().getTextEditor(), message, FIX_IT); // addError(validator, field.getChildComponent().getTextEditor(), message, FIX_IT); } }
Example 3
Source File: ESLintSettingsPage.java From eslint-plugin with MIT License | 4 votes |
private static void addError(Validator validator, @Nullable JTextComponent textComponent, @NotNull String errorHtmlDescriptionTemplate, @NotNull String linkText) { validator.add((JTextField) textComponent, errorHtmlDescriptionTemplate, linkText); // ValidationInfo error = new ValidationInfo(textComponent, errorHtmlDescriptionTemplate, linkText); // errors.add(error); }