Examples of toLocalFile()


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

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

    assertEquals(correctLocation, location);
  }

  @Test
View Full Code Here

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

    userInfo.setFullName(testUserLogin);
    metaStore.createUser(userInfo);

    // get the user home
    IFileStore userHome = metaStore.getUserHome(userInfo.getUniqueId());
    String location = userHome.toLocalFile(EFS.NONE, null).toString();

    IFileStore root = OrionConfiguration.getRootLocation();
    IFileStore child = root.getChild("te/testGetUserHome");
    String correctLocation = child.toLocalFile(EFS.NONE, null).toString();
View Full Code Here

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

    IFileStore userHome = metaStore.getUserHome(userInfo.getUniqueId());
    String location = userHome.toLocalFile(EFS.NONE, null).toString();

    IFileStore root = OrionConfiguration.getRootLocation();
    IFileStore child = root.getChild("te/testGetUserHome");
    String correctLocation = child.toLocalFile(EFS.NONE, null).toString();

    assertEquals(correctLocation, location);
  }

  @Test
View Full Code Here

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

    workspaceInfo.setUserId(userInfo.getUniqueId());
    metaStore.createWorkspace(workspaceInfo);

    // get the workspace content location
    IFileStore workspaceHome = metaStore.getWorkspaceContentLocation(workspaceInfo.getUniqueId());
    String location = workspaceHome.toLocalFile(EFS.NONE, null).toString();

    IFileStore root = OrionConfiguration.getRootLocation();
    IFileStore childLocation = root.getChild("te/testGetWorkspaceContentLocation/OrionContent");
    String correctLocation = childLocation.toLocalFile(EFS.NONE, null).toString();
View Full Code Here

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

    IFileStore workspaceHome = metaStore.getWorkspaceContentLocation(workspaceInfo.getUniqueId());
    String location = workspaceHome.toLocalFile(EFS.NONE, null).toString();

    IFileStore root = OrionConfiguration.getRootLocation();
    IFileStore childLocation = root.getChild("te/testGetWorkspaceContentLocation/OrionContent");
    String correctLocation = childLocation.toLocalFile(EFS.NONE, null).toString();

    assertEquals(correctLocation, location);
  }

  @Test
View Full Code Here

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

    IPath p = path.removeFirstSegments(1);// remove /file
    IFileStore fileStore = NewFileServlet.getFileStore(null, p);
    if (fileStore == null)
      return null;
    Map<IPath, File> result = new HashMap<IPath, File>();
    File file = fileStore.toLocalFile(EFS.NONE, null);
    // jgit can only handle a local file
    if (file == null)
      return result;
    switch (traverse) {
    case CURRENT:
View Full Code Here

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

        }
          else if (this.editorInput instanceof FileStoreEditorInput)
          {
            FileStoreEditorInput fileStoreInput = (FileStoreEditorInput)this.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)this.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();
            File layoutFile = new File(localFile.getParentFile(), fileName);
            resourceStore = new XmlResourceStore( new FileResourceStore(layoutFile));
          }
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();
            fileName = localFile.getName();
      }
      if (fileName != null && fileName.endsWith(".xml"))
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.