Package org.eclipse.core.runtime

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


            // doesn't return jre libraries
            String[] defaultClassPath = JavaRuntime.computeDefaultRuntimeClassPath(javaProject);
            for (String classpathEntry : defaultClassPath) {
                IPath path = new Path(classpathEntry);
                if(isValidPath(path)) {
                    classPath.add(path.toOSString());
                }
            }
            // add CPE_CONTAINER classpathes
            IClasspathEntry[] rawClasspath = javaProject.getRawClasspath();
            for (IClasspathEntry entry : rawClasspath) {
View Full Code Here


                    if (classpathContainer != null && !(classpathContainer instanceof JREContainer)) {
                        IClasspathEntry[] classpathEntries = classpathContainer.getClasspathEntries();
                        for (IClasspathEntry iClasspathEntry : classpathEntries) {
                            IPath path = iClasspathEntry.getPath();
                            if (isValidPath(path)) {
                                classPath.add(path.toOSString());
                            }
                        }
                    }
                }
            }
View Full Code Here

    ftExecPath = ftExecPath.append("install");
    ftExecPath = ftExecPath.append("bin");
    ftExecPath = ftExecPath.append("ftexec.exe");
    IPath imagePath = interfacePath;
    imagePath = imagePath.append("reposi0");
    ProcessBuilder pb = new ProcessBuilder(ftExecPath.toOSString(),
        "-fcons",
        "-fnict",
        "-fs",
        "-fl",
        logFlags,
View Full Code Here

      ProcessBuilder pb = new ProcessBuilder(ftExecPath.toOSString(),
          "-fcons",
          "-fnict",
          "-fs",
          "-fi",
          "bt:"+ interfacePath.toOSString(),
          "-win",
          path.toOSString());
      Map<String, String> env = pb.environment();
      env.put("FORTE_ROOT", forteRoot);
      /*
 
View Full Code Here

        dd.setTitle("Web Root Location Dialog");
        dd.open();
        Object[] selection = dd.getResult();
        if (selection != null && selection.length > 0) {
          Path path = (Path) selection[0];
          final String pp = path.toOSString();
          if (pp != null) {
            String pp1 = pp.substring(prLoc.length(), pp.length());
            if (pp1.startsWith(File.separator)) {
              pp1 = pp1.substring(1, pp1.length());
            }
View Full Code Here

        if (workspaceRoot.findMember(srcPath) != null) {
          sourceLocation = newSourceLocation;
        } else if (wsRootPath.isPrefixOf(srcPath)) {
          int segmentsMatched = wsRootPath.matchingFirstSegments(srcPath);
          srcPath = srcPath.removeFirstSegments(segmentsMatched).setDevice(null);
          sourceLocation = srcPath.toOSString();
        } else {
          sourceLocation = newSourceLocation;
          relativeToWorkspace = false;
        }
      }
View Full Code Here

      outPath = outPath.append(relativeDestLocation);
    }
    outPath = outPath.append(getName());
    try {
      if (!outPath.toFile().exists()) {
        out = new FileOutputStream(outPath.toOSString());
      } else {
        return copied;
      }
      if (getJSFLibrary() instanceof PluginProvidedJSFLibrary) {
        Bundle bundle = getBundle();
View Full Code Here

        if (workspaceRoot.findMember(srcPath) != null) {
          sourceLocation = newSourceLocation;
        } else if (wsRootPath.isPrefixOf(srcPath)) {
          int segmentsMatched = wsRootPath.matchingFirstSegments(srcPath);
          srcPath = srcPath.removeFirstSegments(segmentsMatched).setDevice(null);
          sourceLocation = srcPath.toOSString();
        } else {
          sourceLocation = newSourceLocation;
          relativeToWorkspace = false;
        }
      }
View Full Code Here

      outPath = outPath.append(relativeDestLocation);
    }
    outPath = outPath.append(getName());
    try {
      if (!outPath.toFile().exists()) {
        out = new FileOutputStream(outPath.toOSString());
      } else {
        return copied;
      }
      if (getTapestryLibrary() instanceof PluginProvidedTapestryLibrary) {
        Bundle bundle = getBundle();
View Full Code Here

      if(path.toFile().exists()) {
        list.add(JavaRuntime.newArchiveRuntimeClasspathEntry(path));
      }
    }

    setDialogSetting(LAST_PATH_SETTING, filterPath.toOSString());

    getViewer().addEntries(list.toArray(new IRuntimeClasspathEntry[0]));
  }

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