Examples of toLocalFile()


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

   * Otherwise fetch it.
   * Returns null if unable to fetch it.
   */
  public static File toLocalFile(URI uri, IProgressMonitor monitor) throws CoreException {
    IFileStore fileStore = EFS.getStore(uri);
    File localFile = fileStore.toLocalFile(EFS.NONE, monitor);
    if (localFile ==null)
      // non local file system
      localFile= fileStore.toLocalFile(EFS.CACHE, monitor);
    return localFile;
  }
View Full Code Here

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

  public static File toLocalFile(URI uri, IProgressMonitor monitor) throws CoreException {
    IFileStore fileStore = EFS.getStore(uri);
    File localFile = fileStore.toLocalFile(EFS.NONE, monitor);
    if (localFile ==null)
      // non local file system
      localFile= fileStore.toLocalFile(EFS.CACHE, monitor);
    return localFile;
  }
  /**
   * Converts a char[][] to String, where segments are separated by '.'.
   */
 
View Full Code Here

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

      }
      else if (editorInput instanceof FileStoreEditorInput)
      {
        FileStoreEditorInput fileStoreInput = (FileStoreEditorInput)editorInput;
          IFileStore store = EFS.getStore(fileStoreInput.getURI());
          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()

        FileStoreEditorInput fileStoreInput = (FileStoreEditorInput)editorInput;
          IFileStore store = EFS.getStore(fileStoreInput.getURI());
          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();
        uniquePath = localFile.getCanonicalPath();
      }
      else if (editorInput instanceof IStorageEditorInput)
View Full Code Here

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

   * Otherwise fetch it.
   * Returns null if unable to fetch it.
   */
  public static File toLocalFile(URI uri, IProgressMonitor monitor) throws CoreException {
    IFileStore fileStore = EFS.getStore(uri);
    File localFile = fileStore.toLocalFile(EFS.NONE, monitor);
    if (localFile ==null)
      // non local file system
      localFile= fileStore.toLocalFile(EFS.CACHE, monitor);
    return localFile;
  }
View Full Code Here

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

  public static File toLocalFile(URI uri, IProgressMonitor monitor) throws CoreException {
    IFileStore fileStore = EFS.getStore(uri);
    File localFile = fileStore.toLocalFile(EFS.NONE, monitor);
    if (localFile ==null)
      // non local file system
      localFile= fileStore.toLocalFile(EFS.CACHE, monitor);
    return localFile;
  }
  /**
   * Converts a char[][] to String, where segments are separated by '.'.
   */
 
View Full Code Here

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

   * to fetch it.
   */
  public static File toLocalFile(URI uri, IProgressMonitor monitor)
      throws CoreException {
    IFileStore fileStore = EFS.getStore(uri);
    File localFile = fileStore.toLocalFile(EFS.NONE, monitor);
    if (localFile == null)
      // non local file system
      localFile = fileStore.toLocalFile(EFS.CACHE, monitor);
    return localFile;
  }
View Full Code Here

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

      throws CoreException {
    IFileStore fileStore = EFS.getStore(uri);
    File localFile = fileStore.toLocalFile(EFS.NONE, monitor);
    if (localFile == null)
      // non local file system
      localFile = fileStore.toLocalFile(EFS.CACHE, monitor);
    return localFile;
  }

  /**
   * Converts a char[][] to String, where segments are separated by '.'.
View Full Code Here

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

    if (locationURI == null)
      return null;

    try {
      IFileStore store = EFS.getStore(locationURI);
      return store.toLocalFile(0, null);
    } catch (CoreException ex) {
      SpringCore.log("Error while converting URI to local file: " + locationURI.toString(), ex);
    }
   
    return null;
View Full Code Here

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

          final URI locationURI = file.getLocationURI();
          if (locationURI == null)
             return false;
          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;
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.