Package org.eclipse.core.internal.resources

Examples of org.eclipse.core.internal.resources.LinkDescription


            HashMap links = desc.getLinks();
            if (links != null) {

              for (Entry entry : (Set<Entry>) links.entrySet()) {
                IPath relativePath = (IPath) entry.getKey();
                LinkDescription linkDescription = (LinkDescription) entry
                    .getValue();
                IPath linkPath = new Path(linkDescription
                    .getLocationURI().getPath());
                IPath filePath = new Path(localFile
                    .toLocalFile(EFS.NONE, null)
                    .getAbsolutePath());
                if (linkPath.isPrefixOf(filePath)) {
View Full Code Here


          if (desc != null){
            HashMap<IPath, LinkDescription> linfo =
              (HashMap<IPath, LinkDescription>)desc.getLinks();
            if (linfo != null){
              for (IPath path : linfo.keySet()){
                LinkDescription link = linfo.get(path);
                IResource member = project.findMember(link.getProjectRelativePath());
                IFileStore store = EFS.getStore(member.getLocationURI());
                String resolvedPath = store != null ?
                  store.toString() : link.getLocationURI().getPath();
                links.put(path.toString(), resolvedPath.replace("\\", "/"));
              }
            }
          }
View Full Code Here

TOP

Related Classes of org.eclipse.core.internal.resources.LinkDescription

Copyright © 2018 www.massapicom. 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.