Package org.eclipse.core.runtime

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


    final Path fullPath = new Path("full path");
   
    context.checking(new Expectations() {{
      allowing(file).getFullPath(); will(returnValue(fullPath));
     
      oneOf(scriptStack).push(with(a_loader_relative_to(fullPath.toPortableString())));
      oneOf(scriptRunner).run(contents, filename);
      oneOf(scriptStack).pop();
      oneOf(scriptRunner).done();
    }});
   
View Full Code Here


                final String alternatePltFileDirectory) throws IOException {
            IPath path = new Path(pltPath);
            final String name = path.lastSegment();
            path = new Path(alternatePltFileDirectory).append(name);
            Files.copy(new File(pltPath), new File(path.toOSString()));
            return path.toPortableString();
        }

        private void checkPlt(final String pltPath,
                final String alternatePltFileDirectory, final IProgressMonitor monitor,
                final IOtpRpc backend) throws DialyzerErrorException, ErlModelException,
View Full Code Here

        for (String sf: srcs) {
          final IPath p = new Path(sf + "/" + fr);
          // getProject().getWorkspace().getRoot().getFile(new Path(depPath));
          final IResource toRes = file.getProject().findMember(p)
          getPlugin().writeInfoMsg(
              "DependenciesCollector looks for: " + p.toPortableString());
          if (toRes != null && toRes instanceof IFile) {
            final IFile to = (IFile) toRes;
            // avoid endless recursion for frege.prelude.Base -> frege.prelude.Base
            if (!file.equals(to))  {
              this.fPackages.put(pack, to);
View Full Code Here

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

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

      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

        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

    gitSection.put(GitConstants.KEY_CLONE, cloneLocation);

    // add Git Tree URI
    IPath clonePath = new Path(cloneLocation.getPath()).removeFirstSegments(2);
    path = new Path(GitServlet.GIT_URI + '/' + Tree.RESOURCE).append(clonePath).append(Constants.HEAD)
        .append(targetPath.toPortableString().substring(clonePath.toPortableString().length()));
    link = new URI(location.getScheme(), location.getAuthority(), path.toString(), null, null);
    gitSection.put(GitConstants.KEY_TREE, link);

    representation.put(GitConstants.KEY_GIT, gitSection);
  }
View Full Code Here

    URI diffLocation = getURI(request);
    if (pattern != null) {
      IPath patternPath = new Path(pattern);
      IPath diffPath = new Path(diffLocation.getPath());
      diffPath = diffPath.removeLastSegments(patternPath.segmentCount());
      diffLocation = new URI(diffLocation.getScheme(), diffLocation.getAuthority(), diffPath.toPortableString(), null, null);
    }
    URI cloneLocation = BaseToCloneConverter.getCloneLocation(diffLocation, BaseToCloneConverter.DIFF);

    int page = request.getParameter("page") != null ? new Integer(request.getParameter("page")).intValue() : 0; //$NON-NLS-1$ //$NON-NLS-2$
    int pageSize = request.getParameter("pageSize") != null ? new Integer(request.getParameter("pageSize")).intValue() : Integer.MAX_VALUE; //$NON-NLS-1$ //$NON-NLS-2$
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.