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()

        if (_tripleEquals) {
          return null;
        }
        IFileStore _store = EFS.getStore(uri);
        NullProgressMonitor _nullProgressMonitor = new NullProgressMonitor();
        _xblockexpression = _store.toLocalFile(0, _nullProgressMonitor);
      }
      return _xblockexpression;
    } catch (Throwable _e) {
      throw Exceptions.sneakyThrow(_e);
    }
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()

    if(sourceModule.isWorkingCopy()) {
      try {
        IBuffer buffer = sourceModule.getBuffer();
        if(buffer != null) {
          IFileStore fileStore = tryCast(ReflectionUtils.readField(buffer, "fFileStore"), IFileStore.class);
          return fileStore.toLocalFile(0, null).toPath();
        }
      } catch (NoSuchFieldException e) {
      } catch (CoreException e) {
      }
    }
View Full Code Here

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

      ProjectInfo project = getProjectForLocation(representation.getString(ProtocolConstants.KEY_LOCATION));
      if (project == null)
        return;
      IFileStore store = project.getProjectStore();
      // create repository in each project if it doesn't already exist
      File localFile = store.toLocalFile(EFS.NONE, null);
      File gitDir = GitUtils.getGitDir(localFile);
      if (gitDir == null) {
        gitDir = new File(localFile, Constants.DOT_GIT);
        Repository repo = null;
        try {
View Full Code Here

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

        return null;
      }
      String workspaceId = workspaceIds.get(0);

      IFileStore workspaceContentLocation = metaStore.getWorkspaceContentLocation(workspaceId);
      String localVolume = workspaceContentLocation.toLocalFile(EFS.NONE, null).getAbsolutePath();
      String volume = localVolume + ":/home/" + user + ":rw";
      if (logger.isDebugEnabled()) {
        logger.debug("Created Docker Volume \"" + volume + "\" for user " + user);
      }
      return volume;
View Full Code Here

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

      ServletContextHandler jettyContext = (ServletContextHandler) context;

      IFileStore fileStore = OrionConfiguration.getRootLocation();
      File rootLocation = null;
      try {
        rootLocation = fileStore.toLocalFile(EFS.NONE, null);
      } catch (CoreException e) {
        Logger logger = LoggerFactory.getLogger("org.eclipse.orion.server.config"); //$NON-NLS-1$
        logger.error("Could not initialize NCSA Request Log", e); //$NON-NLS-1$
      }
View Full Code Here

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

    projectInfo.setWorkspaceId(workspaceInfo.getUniqueId());
    metaStore.createProject(projectInfo);

    // get the default content location
    IFileStore defaultContentLocation = metaStore.getDefaultContentLocation(projectInfo);
    String location = defaultContentLocation.toLocalFile(EFS.NONE, null).toString();

    IFileStore root = OrionConfiguration.getRootLocation();
    IFileStore projectHome = root.getChild("te/testGetDefaultContentLocation/OrionContent").getChild(projectName);
    String correctLocation = projectHome.toLocalFile(EFS.NONE, null).toString();
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.