Examples of addTrailingSeparator()


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

                    case IClasspathEntry.CPE_SOURCE:
                        path = cpEntry.getOutputLocation();
                        if (path != null) {
                            iResource = root.findMember(path);
                            path = iResource.getLocation();
                            path = path.addTrailingSeparator();
                            entries.add(path.toFile().toURI().toURL());
                        }
                        break;
                   
                    case IClasspathEntry.CPE_LIBRARY:
View Full Code Here

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

    IPath folders = path.removeLastSegments(1).removeFirstSegments(1);
    IPath checkPath = Path.ROOT;
    int segmentCount = folders.segmentCount();
    for(int i = 0; i < segmentCount; i++) {
      checkPath = checkPath.addTrailingSeparator().append(folders.segment(i));
      IFolder folder = project.getFolder(checkPath);
      if(!folder.exists())
        folder.create(true, true, null);
    }
    linkFile.createLink(uri, IResource.ALLOW_MISSING_LOCAL, null);
View Full Code Here

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

    URL fileLocation = createdFile.getURL();
    IPath filepath = new Path(fileLocation.getPath());
    filepath = filepath.removeFirstSegments(new Path(FILE_SERVLET_LOCATION).segmentCount()); // chop off leading /file/
    filepath = filepath.removeLastSegments(1); // chop off trailing /foo.html
    filepath = filepath.makeAbsolute();
    filepath = filepath.addTrailingSeparator();
    String parentFolder = filepath.toString();

    // User B: Give access to test's workspace
    String bWorkspaceId = workspaceId;
    AuthorizationService.addUserRight(userBObject.getUniqueId(), "/workspace/" + bWorkspaceId);
View Full Code Here

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

          s += GitUtils.encode(requestObject.getString(GitConstants.KEY_COMMIT_NEW));
        }
        np = np.append(s);
      }
      if (p.hasTrailingSeparator())
        np = np.addTrailingSeparator();
      URI nu = new URI(u.getScheme(), u.getUserInfo(), u.getHost(), u.getPort(), np.toString(), u.getQuery(), u.getFragment());
      JSONObject result = new JSONObject();
      result.put(ProtocolConstants.KEY_LOCATION, nu.toString());
      OrionServlet.writeJSONResponse(request, response, result, JsonURIUnqualificationStrategy.ALL_NO_GIT);
      response.setHeader(ProtocolConstants.HEADER_LOCATION, resovleOrionURI(request, nu).toString());
View Full Code Here

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

          s += ".." + GitUtils.encode(newCommit); //$NON-NLS-1$
        }
        np = np.append(s);
      }
      if (p.hasTrailingSeparator())
        np = np.addTrailingSeparator();
      URI nu = new URI(u.getScheme(), u.getUserInfo(), u.getHost(), u.getPort(), np.toString(), request.getQueryString(), u.getFragment());
      JSONObject result = new JSONObject();
      result.put(ProtocolConstants.KEY_LOCATION, nu);
      OrionServlet.writeJSONResponse(request, response, result, JsonURIUnqualificationStrategy.ALL_NO_GIT);
      response.setHeader(ProtocolConstants.HEADER_LOCATION, resovleOrionURI(request, nu).toString());
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.