Package com.google.eclipse.javascript.jstestdriver.core

Examples of com.google.eclipse.javascript.jstestdriver.core.ConfigurationData


      public boolean visit(IResource resource) throws CoreException {
        if (resource.getName().endsWith(".conf") || resource.getName().endsWith(".jstd")) {
          // get the path relative to the project.
          String resourcePath = resource.getProjectRelativePath().toOSString();
          configurationPaths.put(
              resourcePath, new ConfigurationData(resourcePath, resourcePath, basePaths));
        }
        return true;
      }
    });
    return configurationPaths;
View Full Code Here


  }

  @Override
  public void performApply(ILaunchConfigurationWorkingCopy configuration) {
    if (getSelectedProject() != null) {
      ConfigurationData data = projectPathToAbsolutePath.get(getSelectedComboString(confFileCombo));
      configuration.setAttribute(LaunchConfigurationConstants.PROJECT_NAME, getSelectedComboString(projectCombo));
     
      if (data != null) {
        configuration.setAttribute(LaunchConfigurationConstants.CONF_FILENAME, data.getName());
        configuration.setAttribute(LaunchConfigurationConstants.CONF_FULLPATH,
            data.getConfigurationPath());
        int i = 0;
        for (File path : data.getBasePaths()) {
          configuration.setAttribute(
              String.format("%s_%s", LaunchConfigurationConstants.BASEPATH, i++),
              path.getAbsolutePath());
        }
      }
View Full Code Here

TOP

Related Classes of com.google.eclipse.javascript.jstestdriver.core.ConfigurationData

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.