Package com.intellij.execution.configurations

Examples of com.intellij.execution.configurations.RuntimeConfigurationException


  public void checkConfiguration() throws RuntimeConfigurationException {
    super.checkConfiguration();
    final HaxeApplicationModuleBasedConfiguration configurationModule = getConfigurationModule();
    final Module module = configurationModule.getModule();
    if (module == null) {
      throw new RuntimeConfigurationException(HaxeBundle.message("haxe.run.no.module", getName()));
    }
  }
View Full Code Here


  public void checkConfiguration() throws RuntimeConfigurationException {
    super.checkConfiguration();
    final HaxeApplicationModuleBasedConfiguration configurationModule = getConfigurationModule();
    final Module module = configurationModule.getModule();
    if (module == null) {
      throw new RuntimeConfigurationException(HaxeBundle.message("haxe.run.no.module", getName()));
    }
    final HaxeModuleSettings settings = HaxeModuleSettings.getInstance(module);
    if (settings.isUseHxmlToBuild() && !customFileToLaunch) {
      throw new RuntimeConfigurationException(HaxeBundle.message("haxe.run.select.custom.file"));
    }
    if (settings.isUseNmmlToBuild() && customFileToLaunch) {
      throw new RuntimeConfigurationException(HaxeBundle.message("haxe.run.do.not.select.custom.file"));
    }
    if (settings.isUseNmmlToBuild() && customExecutable) {
      throw new RuntimeConfigurationException(HaxeBundle.message("haxe.run.do.not.select.custom.executable"));
    }
  }
View Full Code Here

    public void checkConfiguration() throws RuntimeConfigurationException {
        super.checkConfiguration();

        if (testTargetType.equals(TestTargetType.Package) &&
                (packageName == null || packageName.isEmpty())) {
            throw new RuntimeConfigurationException("Package name is required");
        }

        if (testTargetType.equals(TestTargetType.File) &&
                (testFile.isEmpty() || (!testFile.isEmpty() && !testFile.contains("_test.go")))) {
            throw new RuntimeConfigurationException("The selected file does not appear to be a test file");
        }

        if (!workingDir.isEmpty()) {
            File dir = new File(workingDir);

            if (!dir.exists()) {
                throw new RuntimeConfigurationException("The selected application working directory does not appear to exist.");
            }

            if (!dir.isDirectory()) {
                throw new RuntimeConfigurationException("The selected application working directory does not appear to be a directory.");
            }
        }
    }
View Full Code Here

TOP

Related Classes of com.intellij.execution.configurations.RuntimeConfigurationException

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.