Package org.eclipse.core.filesystem

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


          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

          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

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.