Package org.springsource.ide.eclipse.commons.livexp.core

Examples of org.springsource.ide.eclipse.commons.livexp.core.ValidationResult


   * to dealt with this situation (e.g. by triggering a background download and showing a
   * temporary info message until download is complete.
   */
  public ValidationResult validateBuildType(BuildType bt) throws UIThreadDownloadDisallowed {
    for (CodeSet cs : getCodeSets()) {
      ValidationResult result = cs.validateBuildType(bt);
      if (!result.isOk()) {
        return result;
      }
    }
    return ValidationResult.OK;
  }
View Full Code Here


            List<String> codesetNames = codesets.getValues();
            if (codesetNames!=null) {
              for (String csname : codesetNames) {
                CodeSet cs = g.getCodeSet(csname);
                if (cs!=null) {
                  ValidationResult result = cs.validateBuildType(bt);
                  if (!result.isOk()) {
                    return result.withMessage("CodeSet '"+csname+"': "+result.msg);
                  }
                  ImportStrategy importStrategy = bt.getImportStrategy();
                  if (!importStrategy.isSupported()) {
                    //This means some required STS component like m2e or gradle tooling is not installed
                    return ValidationResult.error(bt.getNotInstalledMessage());
View Full Code Here

              for (String name : names) {
                CodeSet cs = g.getCodeSet(name);
                if (cs!=null) {
                  codesetSelected = true;
                  ImportConfiguration conf = ImportUtils.importConfig(g, cs);
                  ValidationResult valid = ImportUtils.validateImportConfiguration(conf);
                  if (!valid.isOk()) {
                    return valid;
                  }
                }
              }
            }
View Full Code Here

   * to dealt with this situation (e.g. by triggering a background download and showing a
   * temporary info message until download is complete.
   */
  public ValidationResult validateBuildType(BuildType bt) throws UIThreadDownloadDisallowed {
    for (CodeSet cs : getCodeSets()) {
      ValidationResult result = cs.validateBuildType(bt);
      if (!result.isOk()) {
        return result;
      }
    }
    return ValidationResult.OK;
  }
View Full Code Here

TOP

Related Classes of org.springsource.ide.eclipse.commons.livexp.core.ValidationResult

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.