Examples of toLocalFile()


Examples of org.eclipse.core.filesystem.IFileStore.toLocalFile()

          IFileStore store = EFS.getStore(locationURI);
      //first try to obtain a local file directly fo1r this store
      java.io.File localFile = store.toLocalFile(EFS.NONE, null);
      //if no local file is available, obtain a cached file
      if (localFile == null)
        localFile = store.toLocalFile(EFS.CACHE, null);
      if (localFile == null)
        return false;
      return true;
    } catch (CoreException e) {
      //this can only happen if the file system is not available for this scheme
View Full Code Here

Examples of org.eclipse.core.filesystem.IFileStore.toLocalFile()

          final URI locationURI = file.getLocationURI();
          if (locationURI == null)
             throw new IllegalArgumentException();
          IFileStore store = EFS.getStore(locationURI);
      //first try to obtain a local file directly fo1r this store
      java.io.File localFile = store.toLocalFile(EFS.NONE, null);
      //if no local file is available, obtain a cached file
      if (localFile == null)
        localFile = store.toLocalFile(EFS.CACHE, null);
      if (localFile == null)
        throw new IllegalArgumentException();
View Full Code Here

Examples of org.eclipse.core.filesystem.IFileStore.toLocalFile()

          IFileStore store = EFS.getStore(locationURI);
      //first try to obtain a local file directly fo1r this store
      java.io.File localFile = store.toLocalFile(EFS.NONE, null);
      //if no local file is available, obtain a cached file
      if (localFile == null)
        localFile = store.toLocalFile(EFS.CACHE, null);
      if (localFile == null)
        throw new IllegalArgumentException();
      return Path.fromOSString(localFile.getAbsolutePath());
    } catch (CoreException e) {
      //this can only happen if the file system is not available for this scheme
View Full Code Here

Examples of org.eclipse.core.internal.filesystem.local.LocalFile.toLocalFile()

                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)) {
                  filePath = filePath.removeFirstSegments(
                      linkPath.segmentCount()).setDevice(
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.