Package com.intellij.openapi.ui

Examples of com.intellij.openapi.ui.ValidationInfo


  }


  @Override
  protected ValidationInfo doValidate() {
    ValidationInfo info;
    for (final PluginPathPane plugin : _invalidPluginPanes) {
      info = plugin.doValidate();
      if (info != null) {
        return info;
      }
View Full Code Here


      if (isImport()) {
        final String path = getPath();
        if (null != path) {
          final File archive = new File(path);
          if (!FindBugsCustomPluginUtil.check(archive)) {
            return new ValidationInfo("Path is invalid", _pathTextField);
          }
        } else {
          return new ValidationInfo("No path specified", _pathTextField);
        }
      }
      return null;
    }
View Full Code Here

  @Nullable
  @Override
  protected ValidationInfo doValidate() {
    if (!StringUtil.isJavaIdentifier(getFunctionName())) {
      return new ValidationInfo("Not a valid name!", myFunctionNameField);
    }
    return super.doValidate();
  }
View Full Code Here

  }

  @Nullable
  protected ValidationInfo doValidate() {
    if (myOtherRadioButton.isSelected() && StringUtil.isEmptyOrSpaces(myOtherModeTextField.getText())) {
      return new ValidationInfo(DartBundle.message("pub.build.mode.not.specified"));
    }
    return null;
  }
View Full Code Here

  @Nullable
  @Override
  public ValidationInfo validate() {
    // invalid Dartium path is not a blocking error
    final String message = DartSdkUtil.getErrorMessageIfWrongSdkRootPath(mySdkPathTextWithBrowse.getText().trim());
    return message == null ? null : new ValidationInfo(message, mySdkPathTextWithBrowse);
  }
View Full Code Here

      error = myValidateCache.get(path);
    }
    else {
      try {
        if (StringUtil.isEmpty(path)) {
          return new ValidationInfo("Please select path to executable");
        }

        new PhoneGapCommandLine(path, null).version();
        error = false;
      }
      catch (Exception e) {
        error = true;
      }
      myValidateCache.put(path, error);
    }
    return error ? new ValidationInfo("Incorrect PhoneGap/Cordova executable") : null;
  }
View Full Code Here

  @Nullable
  protected ValidationInfo doValidate() {
    String text = myDirectoryTextField.getText();
    File dir = new File(text);
    if (!dir.isDirectory() || !dir.isAbsolute()) {
      return new ValidationInfo("Not a valid directory", myDirectoryTextField);
    }
    return null;
  }
View Full Code Here

    if (myLibraryHelper.hasReusableLibraryModel()) {
      return null;
    }
    String text=  myLibraryNameTextField.getText();
    if (StringUtil.isEmpty(text)) {
      return new ValidationInfo("Library name is empty", myLibraryNameTextField);
    }
    boolean exists = myLibraryHelper.doesJavaScriptLibraryModelExist(myLibraryNameTextField.getText());
    if (exists) {
      return new ValidationInfo("Library with such name already exists", myLibraryNameTextField);
    }
    return null;
  }
View Full Code Here

    @Nullable
    @Override
    public ValidationInfo validate() {
        if (getSdkData() == null) {
            return new ValidationInfo(GoBundle.message("error.invalid.sdk.path", mySdkPath.getText()));
        }

        String gaeSdkPath = mySdkPath.getText();

        GoAppEngineSdkType goSdk = new GoAppEngineSdkType();
        if (!goSdk.isValidSdkHome(gaeSdkPath)) {
            return new ValidationInfo(GoBundle.message("error.invalid.sdk.path", mySdkPath.getText()));
        }

        GoAppEngineSdkData goSdkData = GoSdkUtil.testGoAppEngineSdk(gaeSdkPath);

        if (goSdkData == null) {
            return new ValidationInfo(GoBundle.message("error.invalid.sdk.path", mySdkPath.getText()));
        }

        GoGlobalSettings.getInstance().setPaths(GoGlobalSettings.getInstance().getGoRoot(), gaeSdkPath, gopathPath.getText());

        labelSdkVersion.setText(goSdkData.VERSION_MAJOR);
View Full Code Here

    @Nullable
    @Override
    public ValidationInfo validate() {
        if (getSdkData() == null) {
            return new ValidationInfo(GoBundle.message("error.invalid.sdk.path", mySdkPath.getText()));
        }

        String goSdkPath = mySdkPath.getText();

        GoSdkType goSdk = new GoSdkType();
        if (!goSdk.isValidSdkHome(goSdkPath)) {
            return new ValidationInfo(GoBundle.message("error.invalid.sdk.path", mySdkPath.getText()));
        }

        GoSdkData goSdkData = GoSdkUtil.testGoogleGoSdk(goSdkPath);

        if (goSdkData == null) {
            return new ValidationInfo(GoBundle.message("error.invalid.sdk.path", mySdkPath.getText()));
        }

        GoGlobalSettings.getInstance().setPaths(goSdkPath, GoGlobalSettings.getInstance().getGoAppEngineRoot(), gopathPath.getText());

        labelSdkVersion.setText(goSdkData.VERSION_MAJOR);
View Full Code Here

TOP

Related Classes of com.intellij.openapi.ui.ValidationInfo

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.