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

Examples of org.netbeans.modules.php.nette.validators.SandboxPathValidator.validate()


    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


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

    return sandboxPathValidator.validate(sandboxPath) && !sandboxPath.trim().isEmpty();
  }

  private void createDefaultDirectoryStructure() throws IOException {
    createDocumentRoot();
    createApp();
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.