Package org.eclipse.core.internal.localstore

Examples of org.eclipse.core.internal.localstore.FileSystemResourceManager


    File file = (File)ProjectUtils.getFile(name, filename);

    // update local history
    if (file.exists()){
      FileSystemResourceManager localManager = file.getLocalManager();
      IFileStore store = localManager.getStore(file);
      IFileInfo fileInfo = store.fetchInfo();
      localManager.getHistoryStore()
        .addState(file.getFullPath(), store, fileInfo, false);
    }
    return null;
  }
View Full Code Here


  protected void startup(IProgressMonitor monitor) throws CoreException {
    // ensure the tree is locked during the startup notification
    try {
      _workManager = new WorkManager(this);
      _workManager.startup(null);
      fileSystemManager = new FileSystemResourceManager(this);
      fileSystemManager.startup(monitor);
      pathVariableManager = new PathVariableManager();
      pathVariableManager.startup(null);
      natureManager = new NatureManager();
      natureManager.startup(null);
View Full Code Here

    locationsMap.matchingPrefixDo(location, addToCollection);
    //if this is a project, get all resources rooted below links in this project
    if (resource.getType() == IResource.PROJECT) {
      try {
        IResource[] members = ((IProject) resource).members();
        final FileSystemResourceManager localManager = workspace.getFileSystemManager();
        for (int i = 0; i < members.length; i++) {
          if (members[i].isLinked()) {
            IFileStore linkLocation = localManager.getStore(members[i]);
            if (linkLocation != null)
              locationsMap.matchingPrefixDo(linkLocation, addToCollection);
          }
        }
      } catch (CoreException e) {
View Full Code Here

      internalComputeAliases(resource, location);
    else
      computeDeepAliases(resource, location);
    if (aliases.size() == 0)
      return;
    FileSystemResourceManager localManager = workspace.getFileSystemManager();
    for (Iterator it = aliases.iterator(); it.hasNext();) {
      IResource alias = (IResource) it.next();
      monitor.subTask(NLS.bind(Messages.links_updatingDuplicate, alias.getFullPath()));
      if (alias.getType() == IResource.PROJECT) {
        if (checkDeletion((Project) alias, location))
          continue;
        //project did not require deletion, so fall through below and refresh it
      }
      localManager.refresh(alias, IResource.DEPTH_INFINITE, false, null);
    }
  }
View Full Code Here

TOP

Related Classes of org.eclipse.core.internal.localstore.FileSystemResourceManager

Copyright © 2018 www.massapicom. 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.