Advertisement
Guest User

Untitled

a guest
Nov 24th, 2014
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. @Override
  2. protected void checkState() {
  3. super.checkState();
  4. VCS_INSTALL_STATUS vcsStatus = VCSSettings.checkInstallationPath(subversionPathEditor.getStringValue());
  5. Boolean subversionSupport = subversionSupportBooleanFieldEditor.getBooleanValue();
  6. if (subversionSupport && vcsStatus == VCS_INSTALL_STATUS.NO_FILE) {
  7. setErrorMessage("No file");
  8. setValid(false);
  9. } else if (subversionSupport && vcsStatus == VCS_INSTALL_STATUS.NO_PATH) {
  10. setErrorMessage("No path");
  11. setValid(false);
  12. } else if (subversionSupport && vcsStatus == VCS_INSTALL_STATUS.NOT_EXECUTABLE) {
  13. setErrorMessage("Not executable");
  14. setValid(false);
  15. } else if (subversionSupport &&vcsStatus == VCS_INSTALL_STATUS.OK) {
  16. setErrorMessage(null);
  17. setValid(true);
  18. }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement