Package com.dubture.composer.ui.wizard

Examples of com.dubture.composer.ui.wizard.ValidationException


    if (fileLocation.toPortableString().length() > 0) {
      final IFileHandle directory = environment.getFile(fileLocation);
      IPath futurepath = directory.getPath().append(firstPage.nameGroup.getName());
      File futureFile = futurepath.toFile();
      if ((futureFile.exists() && futureFile.isFile()) || (futureFile.exists() && futureFile.isDirectory() && futureFile.list().length > 0)) {
        throw new ValidationException("The target directory is not empty. Unable to run \"create-project\" with a target directory containing files.", Severity.ERROR);
      }
    }
  }
View Full Code Here


 
  protected void validateProjectName(String name) throws ValidationException {
   
    IProject project = workspace.getRoot().getProject(name);
    if (project != null && project.exists()) {
      throw new ValidationException("A project with the same name already exists in the workspace", Severity.ERROR);
    }
  }
View Full Code Here

  @Override
  protected void finishValidation() throws ValidationException {
    ComposerProjectWizardFirstPage first = (ComposerProjectWizardFirstPage) firstPage;
    final String vendor = first.settingsGroup.getVendor();
    if (vendor == null || vendor.length() == 0) {
      throw new ValidationException("Enter a vendor name.", Severity.WARNING);
    }
  }
View Full Code Here

          // phpExe extension point
          try {
            executable = LaunchUtil.getPHPExecutable();
          } catch (ExecutableNotFoundException e) {
            // still no php exe found
            throw new ValidationException("No PHP executable defined. Please specify a valid executable in the PHP Executables preference page.", Severity.ERROR);
          }
        }
      }
    };
View Full Code Here

TOP

Related Classes of com.dubture.composer.ui.wizard.ValidationException

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.