Package org.netbeans.modules.php.nette.validators

Examples of org.netbeans.modules.php.nette.validators.SandboxPathValidator


    NetteOptions.getInstance().setNetteFile(netteFileTextField.getText());
    NetteOptions.getInstance().setSandboxPath(sandboxPathTextField.getText());
  }

  boolean valid() {
    Validable sandboxPathValidator = new SandboxPathValidator();

    if (!isNetteFileValid()) {
      errorLabel.setIcon(errorIcon);
      errorLabel.setText(NbBundle.getMessage(NettePanel.class, "ERR_invalid_nette_file"));

      return false;
    } else if (!sandboxPathValidator.validate(sandboxPathTextField.getText())) {
      errorLabel.setIcon(errorIcon);
      errorLabel.setText(NbBundle.getMessage(NettePanel.class, "ERR_invalid_sandbox_folder"));

      return false;
    } else {
View Full Code Here


      createDefaultDirectoryStructure();
    }
  }

  private boolean isValidSandboxPath() {
    Validable sandboxPathValidator = new SandboxPathValidator();
    String sandboxPath = NetteOptions.getInstance().getSandboxPath();

    return sandboxPathValidator.validate(sandboxPath) && !sandboxPath.trim().isEmpty();
  }
View Full Code Here

TOP

Related Classes of org.netbeans.modules.php.nette.validators.SandboxPathValidator

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.