Package org.eclipse.core.runtime

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


    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

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.