Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Override
- protected void checkState() {
- super.checkState();
- VCS_INSTALL_STATUS vcsStatus = VCSSettings.checkInstallationPath(subversionPathEditor.getStringValue());
- Boolean subversionSupport = subversionSupportBooleanFieldEditor.getBooleanValue();
- if (subversionSupport && vcsStatus == VCS_INSTALL_STATUS.NO_FILE) {
- setErrorMessage("No file");
- setValid(false);
- } else if (subversionSupport && vcsStatus == VCS_INSTALL_STATUS.NO_PATH) {
- setErrorMessage("No path");
- setValid(false);
- } else if (subversionSupport && vcsStatus == VCS_INSTALL_STATUS.NOT_EXECUTABLE) {
- setErrorMessage("Not executable");
- setValid(false);
- } else if (subversionSupport &&vcsStatus == VCS_INSTALL_STATUS.OK) {
- setErrorMessage(null);
- setValid(true);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement