Package org.eclipse.core.resources

Examples of org.eclipse.core.resources.IPathVariableManager.resolveURI()


        final Collection<IPath> projectIncludeDirs = erlProject.getProperties()
                .getIncludeDirs();
        final IPathVariableManager pvm = ResourcesPlugin.getWorkspace()
                .getPathVariableManager();
        for (final IPath inc : projectIncludeDirs) {
            final IPath incPath = URIUtil.toPath(pvm.resolveURI(URIUtil.toURI(inc)));
            if (incPath.isAbsolute()) {
                includeDirs.add(incPath);
            } else {
                final IFolder folder = project.getFolder(incPath);
                if (folder != null) {
View Full Code Here


    int _size = paths.size();
    final List<IPath> result = Lists.<IPath>newArrayListWithCapacity(_size);
    for (final IPath path : paths) {
      {
        URI _uRI = URIUtil.toURI(path);
        URI _resolveURI = pathVariableManager.resolveURI(_uRI);
        final IPath resolvedPath = URIUtil.toPath(_resolveURI);
        result.add(resolvedPath);
      }
    }
    return Collections.<IPath>unmodifiableCollection(result);
View Full Code Here

 
  public IPath resolvePath(final IPath path) {
    IWorkspace _workspace = ResourcesPlugin.getWorkspace();
    final IPathVariableManager pathVariableManager = _workspace.getPathVariableManager();
    URI _uRI = URIUtil.toURI(path);
    URI _resolveURI = pathVariableManager.resolveURI(_uRI);
    return URIUtil.toPath(_resolveURI);
  }
}
View Full Code Here

  myLibrarySelector.setRedraw(false);

  // IWorkspace workspace = ResourcesPlugin.getWorkspace();
  IPathVariableManager pathMan = myProject.getPathVariableManager();

  URI ArduinoLibraryURI = pathMan.resolveURI(pathMan.getURIValue(ArduinoConst.WORKSPACE_PATH_VARIABLE_NAME_ARDUINO_LIB));
  URI PrivateLibraryURI = pathMan.resolveURI(pathMan.getURIValue(ArduinoConst.WORKSPACE_PATH_VARIABLE_NAME_PRIVATE_LIB));
  URI HardwareLibrarURI = pathMan.resolveURI(pathMan.getURIValue(ArduinoConst.WORKSPACE_PATH_VARIABLE_NAME_HARDWARE_LIB));

  if (HardwareLibrarURI != null) {
      IPath HardwareLibraryPath = URIUtil.toPath(HardwareLibrarURI);
View Full Code Here

  // IWorkspace workspace = ResourcesPlugin.getWorkspace();
  IPathVariableManager pathMan = myProject.getPathVariableManager();

  URI ArduinoLibraryURI = pathMan.resolveURI(pathMan.getURIValue(ArduinoConst.WORKSPACE_PATH_VARIABLE_NAME_ARDUINO_LIB));
  URI PrivateLibraryURI = pathMan.resolveURI(pathMan.getURIValue(ArduinoConst.WORKSPACE_PATH_VARIABLE_NAME_PRIVATE_LIB));
  URI HardwareLibrarURI = pathMan.resolveURI(pathMan.getURIValue(ArduinoConst.WORKSPACE_PATH_VARIABLE_NAME_HARDWARE_LIB));

  if (HardwareLibrarURI != null) {
      IPath HardwareLibraryPath = URIUtil.toPath(HardwareLibrarURI);
View Full Code Here

  // IWorkspace workspace = ResourcesPlugin.getWorkspace();
  IPathVariableManager pathMan = myProject.getPathVariableManager();

  URI ArduinoLibraryURI = pathMan.resolveURI(pathMan.getURIValue(ArduinoConst.WORKSPACE_PATH_VARIABLE_NAME_ARDUINO_LIB));
  URI PrivateLibraryURI = pathMan.resolveURI(pathMan.getURIValue(ArduinoConst.WORKSPACE_PATH_VARIABLE_NAME_PRIVATE_LIB));
  URI HardwareLibrarURI = pathMan.resolveURI(pathMan.getURIValue(ArduinoConst.WORKSPACE_PATH_VARIABLE_NAME_HARDWARE_LIB));

  if (HardwareLibrarURI != null) {
      IPath HardwareLibraryPath = URIUtil.toPath(HardwareLibrarURI);

      if ((HardwareLibraryPath.toFile().exists()) && (HardwareLibraryPath.toFile().list().length > 0)) {
View Full Code Here

  addIncludeFolder(configurationDescription, link.getFullPath());

  IPathVariableManager pathMan = project.getPathVariableManager();

  String possibleIncludeFolder = "utility";
  File file = new File(new Path(pathMan.resolveURI(pathMan.getURIValue(PathVarName)).getPath()).append(SubFolder).append(possibleIncludeFolder)
    .toString());
  if (file.exists()) {
      addIncludeFolder(configurationDescription, link.getFullPath().append(possibleIncludeFolder));
  }
View Full Code Here

  if (file.exists()) {
      addIncludeFolder(configurationDescription, link.getFullPath().append(possibleIncludeFolder));
  }

  possibleIncludeFolder = "src";
  file = new File(new Path(pathMan.resolveURI(pathMan.getURIValue(PathVarName)).getPath()).append(SubFolder).append(possibleIncludeFolder)
    .toString());
  if (file.exists()) {
      addIncludeFolder(configurationDescription, link.getFullPath().append(possibleIncludeFolder));
  }
View Full Code Here

  if (file.exists()) {
      addIncludeFolder(configurationDescription, link.getFullPath().append(possibleIncludeFolder));
  }

  possibleIncludeFolder = "arch";
  file = new File(new Path(pathMan.resolveURI(pathMan.getURIValue(PathVarName)).getPath()).append(SubFolder).append(possibleIncludeFolder)
    .toString());
  if (file.exists()) {
      addIncludeFolder(configurationDescription,
        link.getFullPath().append(possibleIncludeFolder).append(makeEnvironmentVar(ENV_KEY_ARCHITECTURE)));
  }
View Full Code Here

  var = new EnvironmentVariable(ENV_KEY_archive_file, "arduino.ar");
  contribEnv.addVariable(var, confDesc);

  IPathVariableManager pathMan = confDesc.getProjectDescription().getProject().getPathVariableManager();
  URI buildVariantURI = pathMan.getURIValue(ArduinoConst.PATH_VARIABLE_NAME_ARDUINO_PINS);
  buildVariantURI = pathMan.resolveURI(buildVariantURI);
  String buildVariantPath = buildVariantURI.getPath() + "/${" + ArduinoConst.ENV_KEY_build_variant + "}";
  var = new EnvironmentVariable(ENV_KEY_build_variant_path, buildVariantPath);
  contribEnv.addVariable(var, confDesc);
  // IPath platformPath = new Path(arduinoProperties.getPlatformFolder());
  // IPath PinPath = platformPath.append(ArduinoConst.VARIANTS_FOLDER);
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.