Examples of SandboxPathValidator


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

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

      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
Copyright © 2018 www.massapi.com. 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.