com.wix.settings.ValidationUtils Java Examples
The following examples show how to use
com.wix.settings.ValidationUtils.
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: RTSettingsPage.java From react-templates-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)) { ValidationInfo error = new ValidationInfo(field.getChildComponent().getTextEditor(), message, FIX_IT); validator.errors.add(error); } }
Example #3
Source File: JscsSettingsPage.java From jscs-plugin with MIT License | 4 votes |
private void validateField(List<ValidationInfo> errors, TextFieldWithHistoryWithBrowseButton field, boolean allowEmpty, String message) { if (!ValidationUtils.validatePath(project, field.getChildComponent().getText(), allowEmpty)) { ValidationInfo error = new ValidationInfo(field.getChildComponent().getTextEditor(), message, FIX_IT); errors.add(error); } }
Example #4
Source File: RTSettingsPage.java From react-templates-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)) { ValidationInfo error = new ValidationInfo(field.getChildComponent().getTextEditor(), message, FIX_IT); validator.errors.add(error); } }
Example #5
Source File: ESLintSettingsPage.java From eslint-plugin with MIT License | 4 votes |
private boolean validateDirectory(String path, boolean allowEmpty) { return ValidationUtils.validateDirectory(project, path, allowEmpty); }