Package org.eclipse.core.runtime

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


      // 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


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

            // Decide this resource is under the bundle's webContent
            // and need process.
            Bundle currentContextBundle = (Bundle) threadScope
                .get().get(RESPONSE_CUR_BUNDLE);

            processJspFile(localFile, newAliasPath
                .toPortableString(), currentContextBundle);
          }

          if (!processedDynimicFile) {
            try {
View Full Code Here

        if (filterName(f.getName(), filters)) {
          IPath newAliasPath = aliasPath
              .append(new Path(f.getName()));
          IPath reqPathRelResPath = FileUtil.makeRelativeTo(
              newAliasPath, rawReqPath);
          writer.println(reqPathRelResPath.toPortableString());
          if (f.isDirectory()) {
            reportLocalRes(f, writer, rawReqPath, newAliasPath,
                null);
          }
        }
View Full Code Here

              // webContent and need process.
              Bundle currentContextBundle = (Bundle) threadScope
                  .get().get(RESPONSE_CUR_BUNDLE);

              processedDynimicFile = true;
              processJspFile(f, newAliasPath.toPortableString(),
                  currentContextBundle);
              // Buffer the status marking that the dynimic
              // file found and be
              // processed successfully.
              threadScope.get().put(RESPONSE_DYNIMIC_FILE,
View Full Code Here

        Iterator<IPath> it = AutoFindTocProvider.docJarPaths.keySet()
            .iterator();
        while (it.hasNext()) {
          IPath bufferedPath = it.next();
          if (bufferedPath.toPortableString().contains(
              new Path(siteName + "/" + versionName).append(
                  "plugins").append(pluginName)
                  .toPortableString())) {
            File unzippedDocRoot = AutoFindTocProvider.docJarPaths
                .get(bufferedPath);
View Full Code Here

        Iterator<IPath> it = AutoFindTocProvider.docJarPaths.keySet()
            .iterator();
        while (it.hasNext()) {
          IPath bufferedPath = it.next();
          if (bufferedPath.toPortableString().contains(
              new Path(siteName + "/" + versionName).append(
                  "plugins").append(pluginName)
                  .toPortableString())) {
            File jarFile = bufferedPath.toFile();
            JarFile jar = new JarFile(jarFile);
View Full Code Here

            IPath targetSitePath = updateSitesRoot.append(
                file.getName()).append(version);

            Activator.getInstance().log(
                "Recieved Update Site Files, saved into: "
                    + targetSitePath.toPortableString(), 0,
                true);

            // FIXME:the last version of the same feature site will
            // be deleted
            // temporarily.
View Full Code Here

  }

  MonitoredResource monitoredResourceForPath(IPath path) {
    IPath aPath = path;
    MonitoredResource resource = _resources.get(aPath);
    while (resource == null && !path.isRoot() && !"/".equals(aPath.toPortableString())) {
      aPath = aPath.removeLastSegments(1);
      resource = _resources.get(aPath);
    }
    return resource;
  }
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

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.