Package org.eclipse.core.runtime

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


      IPath fscriptPath = new Path(this.forteRoot);
      fscriptPath = fscriptPath.append("userapp");
      fscriptPath = fscriptPath.append("fscript");
      fscriptPath = fscriptPath.append("cl12");
      fscriptPath = fscriptPath.append("fscript");
      cmd = cmd + ftExecPath.toPortableString() + " -fcons -fnict -fi bt:"+ fscriptPath.toPortableString() + " -fs -fm(n:10000,x:50000) -fr " + repository + " -fw " + workspace + " -fl " + this.logFlags;
      fscriptProcess = Runtime.getRuntime().exec(cmd);
     
      // Start readers to consume output. It looks very innocuous with the output from the process
      // being mapped to p.inputStream, but this is correct.
      OutputContainer container = new OutputContainer(this.msgStream);
View Full Code Here


  }

  private static String getOutputLocation(IProject project, String moduleName) {

    IPath outputDir = project.getLocation().append(getGwtOutputFolder());
    return outputDir.toPortableString();
  }

  public static boolean hasGwtNature(IProject project) {

    boolean hasGwtNature;
View Full Code Here

  }
 
  private static String getOutputLocation(IProject project, String moduleName) {

    IPath outputDir = project.getLocation().append(getGwtOutputFolder());
      return outputDir.toPortableString();
  }

  public static boolean hasGwtNature(IProject project) {

    boolean hasGwtNature;
View Full Code Here

          IPath removeFirstSegments = resource
              .getProjectRelativePath().removeFirstSegments(
                  folder.getProjectRelativePath()
                      .segmentCount());
          try {
            d.putNextEntry(new ZipEntry(removeFirstSegments
                .toPortableString()));
          } catch (IOException e) {
            e.printStackTrace();
          }
          IFile fl = (IFile) resource;
View Full Code Here

      IClasspathEntry[] rawClasspath = javaGaeProject.getResolvedClasspath(true);
      boolean found=false;
      for (IClasspathEntry e:rawClasspath){
        if (e.getEntryKind()==IClasspathEntry.CPE_LIBRARY){
          IPath p=e.getPath();
          String portableString = p.toPortableString();
          String PREFIX = "appengine-java-sdk-";
          int l=portableString.indexOf(PREFIX);
          if(l!=-1){
            int k=portableString.indexOf('/', l+PREFIX.length());
            String version=portableString.substring(l+PREFIX.length(),k);
View Full Code Here

        if (!project.isOpen())
          project.open(null);
        IPath location = new Path(project.getLocation()
            .toPortableString() + "/" + localFileName);
        LogService.info("retrieving resource [" + httpAddress
            + "] to project [" + location.toPortableString() + "]");
        IFile iFile = project.getFile(location.lastSegment());
        URL url = new URL(httpAddress);
        HttpURLConnection connection = (HttpURLConnection) url
            .openConnection();
        connection.setRequestMethod("GET");
View Full Code Here

        if (!project.isOpen())
          project.open(null);
        IPath location = new Path(project.getLocation()
            .toPortableString() + "/" + localFileName);
        LogService.ok("retrieving resource " + jioLocation
            + " to project " + location.toPortableString());
        IFile iFile = project.getFile(location.lastSegment());
        File sourceFile = new File(jioLocation);
        InputStream is = new FileInputStream(sourceFile);

        bis = new BufferedInputStream(is);
View Full Code Here

        dialog.open();
        IPath path = dialog.getResult();
        if (path == null) {
          return;
        } else {
          String saveLocation = path.toPortableString();
          newFilenameText.setText(saveLocation);
          newFilenameText.setSelection(saveLocation.length(),
              saveLocation.length());
          newFileName = saveLocation;
        }
View Full Code Here

                    result.put(path.getId(), Boolean.valueOf(false));
                }
                continue;
            }
            IPath filterPath = FindBugsWorker.toFilterPath(path.getPath(), project);
            result.put(filterPath.toPortableString(), Boolean.valueOf(path.isEnabled()));
        }
        return result;
    }

}
View Full Code Here

  //
  ////////////////////////////////////////////////////////////////////////////
  private void prepareBinderNames() throws Exception {
    // template
    IPath templatePath = m_file.getFullPath();
    String templatePathString = templatePath.toPortableString();
    // package
    IPackageFragment uiPackage;
    {
      if (!(m_file.getParent() instanceof IFolder)) {
        throw new DesignerException(IExceptionConstants.NO_FORM_PACKAGE, templatePathString);
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.