Package org.eclipse.core.runtime

Examples of org.eclipse.core.runtime.Path.toPortableString()


        return true;
      }

      gitSegment = GitUtils.decode(filterPath.segment(0));
      filterPath = filterPath.removeFirstSegments(1);
      pattern = filterPath.toPortableString();
      ObjectId head = repo.resolve(gitSegment);
      if (head == null) {
        throw new Exception("Missing ref in git segment");
      }
      walk = new RevWalk(repo);
View Full Code Here


      Path basePath = new Path(baseLocation.getPath());
      IPath tmp = new Path("/"); //$NON-NLS-1$
      for (int i = 0; i < 5; i++) {
        tmp = tmp.append(basePath.segment(i));
      }
      URI cloneLocation = new URI(baseLocation.getScheme(), baseLocation.getAuthority(), tmp.toPortableString(), null, baseLocation.getFragment());
      JSONObject ref = listEntry(gitSegment, 0, true, 0, cloneLocation, GitUtils.encode(gitSegment));

      parents.add(ref);
      parents.add(listEntry(new Path(cloneLocation.getPath()).lastSegment(), 0, true, 0, cloneLocation, null));
      URI locationWalk = URIUtil.append(cloneLocation, GitUtils.encode(gitSegment));
View Full Code Here

    File root = getWebContentRoot();
    if (root != null && root.exists()) {
      IPath tmpPath = new Path(root.getAbsolutePath());
      tmpPath = tmpPath.append(path);
      if (tmpPath.toFile().exists())
        return tmpPath.toPortableString();

      // if not any file exists, just append the path to the root path and
      // return it.
      return new Path(root.getAbsolutePath()).append(path)
          .toPortableString();
View Full Code Here

          DefinesRoot publishedResRoot = WebResCore.getInstance()
              .registerWebContextRoot(
                  wabundle,
                  WebBundleUtil
                      .getWabContextPathHeader(wabundle),
                  webContentPath.toPortableString());
          buffers.put(wabundle, publishedResRoot);
        }
      }
    }
  }
View Full Code Here

      // e1.printStackTrace();
    }
    if (isLocalTarget) {
      IPath targetPath = new Path(context.getTargetUrl());
      monitor.beginTask("Move to local directory: "
          + targetPath.toPortableString(), 100);
      try {
        File target = targetPath.toFile();
        if (target != null) {
          if (!target.exists() || target.isFile()) {
            FileUtil.createFile(target, true);
View Full Code Here

          IPath relativeModelPath = new Path("");
          for (int i = 0; i < relativePathSegmentCount; i++) {
            relativeModelPath = relativeModelPath.append(".." + IPath.SEPARATOR);
          }
          relativeModelPath = relativeModelPath.append(path.removeFirstSegments(matchingSegmentCount));
          modelPathStr = relativeModelPath.toPortableString();
        }
      }
    } else {
      modelPathStr = path.toPortableString();
    }
View Full Code Here

            zipPath = new Path(path.lastSegment()).append(zipPath);
            path = path.uptoSegment(path.segmentCount() - 1);
        }

        if (zipPath.segmentCount() > 0 && path.segmentCount() > 0) {
            return new PydevZipFileEditorInput(new PydevZipFileStorage(path.toFile(), zipPath.toPortableString()));
        }

        try {
            URI uri = file.toURI();
            return new FileStoreEditorInput(EFS.getStore(uri));
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.