Examples of toOSString()


Examples of org.eclipse.core.runtime.IPath.toOSString()

        if (workspaceLocation == null)
            throw new IOException("Cannot determine workspace location.");

        IPath location = workspaceLocation.append(path);

        return new URL("file", null, location.toOSString()).openConnection();
    }

}
View Full Code Here

Examples of org.eclipse.core.runtime.IPath.toOSString()

      IPath projectPath = project.getLocation();

      // Handle the case where the resource location points to the project
      // itself
      if (projectPath != null
          && localResourceLocation.equals(projectPath.toOSString())) {
        return getModuleResources(relativeModuleResourcePath, project);
      } else {

        // Module resources should be mapped to corresponding workspace
        // resources, unless they are external files, at which point
View Full Code Here

Examples of org.eclipse.core.runtime.IPath.toOSString()

        Collection<IClasspathEntry> sourceEntries = new HashSet<IClasspathEntry>();
        for (IClasspathEntry entry : rawEntries) {
          if (entry.getEntryKind() == IClasspathEntry.CPE_SOURCE) {
            IPath path = entry.getPath();
            if (path != null) {
              boolean isTestSource = isTestSource(path
                  .toOSString());
              if ((istest && isTestSource)
                  || (!istest && !isTestSource)) {
                sourceEntries.add(entry);
              }
View Full Code Here

Examples of org.eclipse.core.runtime.IPath.toOSString()

      // For source entries, path is relative to workspace root
      path = getWorkspaceFullPath(path);

      if (path != null) {
        locations.add(path.toOSString());
      }
    }

    return locations;
  }
View Full Code Here

Examples of org.eclipse.core.runtime.IPath.toOSString()

    try {
      IPath location = javaProject.getOutputLocation();
      location = getWorkspaceFullPath(location);

      if (location != null) {
        nonTestOutput.add(location.toOSString());
      }
    } catch (JavaModelException e) {
      CloudFoundryPlugin.log(e);
    }
    return nonTestOutput;
View Full Code Here

Examples of org.eclipse.core.runtime.IPath.toOSString()

    {
        for (ISigilProjectModel p : SigilCore.getRoot().getProjects())
        {
            IPath path = p.findOutputLocation();

            if (path.toOSString().equals(bp))
            {
                return true;
            }
        }
View Full Code Here

Examples of org.eclipse.core.runtime.IPath.toOSString()

        String vm = getVMArguments(config);
        if (vm != null && vm.trim().length() > 0)
            vmconfig.setVMArguments(vm.split(" "));

        IPath path = getWorkingDirectoryPath(config);
        vmconfig.setWorkingDirectory(path == null ? null : path.toOSString());

        vmconfig.setBootClassPath(getBootpath(config));
        vmconfig.setEnvironment(getEnvironment(config));
        vmconfig.setProgramArguments(LaunchHelper.getProgramArgs(config));
View Full Code Here

Examples of org.eclipse.core.runtime.IPath.toOSString()

    {
        IPath path = SigilCore.getDefault().getStateLocation();
        path = path.append("repository");
        path = path.append(element.getType().getId());
        path = path.append(element.getId());
        return path.toOSString();
    }

    private RepositoryModel loadRepository(String id, String key,
        IRepositoryType type, IPreferenceStore prefs)
    {
View Full Code Here

Examples of org.eclipse.core.runtime.IPath.toOSString()

        IFolder syncFolder = project.getFolder(ProjectUtil.getSyncDirectoryValue(project));

        IPath relativePath = resource.getFullPath().makeRelativeTo(syncFolder.getFullPath());

        FileInfo info = new FileInfo(resource.getLocation().toOSString(), relativePath.toOSString(), resource.getName());

        Activator.getDefault().getPluginLogger().trace("For {0} built fileInfo {1}", resource, info);

        return info;
    }
View Full Code Here

Examples of org.eclipse.core.runtime.IPath.toOSString()

    private String getRepositoryPathForDeletedResource(IResource resource, File contentSyncRoot) {
        IFolder syncFolder = ProjectUtil.getSyncDirectory(resource.getProject());
        IPath relativePath = resource.getFullPath().makeRelativeTo(syncFolder.getFullPath());

        String absFilePath = new File(contentSyncRoot, relativePath.toOSString()).getAbsolutePath();
        String filePath = serializationManager.getBaseResourcePath(absFilePath);

        IPath osPath = Path.fromOSString(filePath);
        String repositoryPath = serializationManager.getRepositoryPath(osPath.makeRelativeTo(syncFolder.getLocation())
                .makeAbsolute().toPortableString());
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.