Package org.eclipse.core.resources

Examples of org.eclipse.core.resources.IFolder.refreshLocal()


        for (int index = 0; index < this.externalFolders.size(); index++ ) {
          if ((externalPath = (IPath)this.externalFolders.get(index)) != null) {
            IFolder folder = getFolder(externalPath);
            // https://bugs.eclipse.org/bugs/show_bug.cgi?id=321358
            if (folder != null)
              folder.refreshLocal(IResource.DEPTH_INFINITE, pm);
          }
          // Set the processed ones to null instead of removing the element altogether,
          // so that they will not be considered as duplicates.
          // This will also avoid elements being shifted to the left every time an element
          // is removed. However, there is a risk of Collection size to be increased more often.
View Full Code Here


    IFile file = project1.getFile("link2project2folder1file1.txt");
    file.createLink(
        project2.getFile("project2folder1/project2folder1file1.txt")
            .getLocation(), 0, null);
    // Make sure linked folder is refreshed
    folder.refreshLocal(IResource.DEPTH_INFINITE, null);

    // Links are written to the .project file
    resourceDeltaTestHelper1
        .assertChangedResources(new String[] { "/project1/.project" });
    // Changes to linked resources are reported against their repository
View Full Code Here

        for (int index = 0; index < this.externalFolders.size(); index++ ) {
          if ((externalPath = (IPath)this.externalFolders.get(index)) != null) {
            IFolder folder = getFolder(externalPath);
            // https://bugs.eclipse.org/bugs/show_bug.cgi?id=321358
            if (folder != null)
              folder.refreshLocal(IResource.DEPTH_INFINITE, pm);
          }
          // Set the processed ones to null instead of removing the element altogether,
          // so that they will not be considered as duplicates.
          // This will also avoid elements being shifted to the left every time an element
          // is removed. However, there is a risk of Collection size to be increased more often.
View Full Code Here

   
    IFolder result = addFolder(externalFolderPath, externalFoldersProject, false);
    if (!result.exists())
      result.createLink(externalFolderPath, IResource.ALLOW_MISSING_LOCAL, monitor);
    else if (refreshIfExistAlready)
      result.refreshLocal(IResource.DEPTH_INFINITE,  monitor);
    return result;
  }

  public void createPendingFolders(IProgressMonitor monitor) throws JavaModelException{
    synchronized (this) {
View Full Code Here

 
  public static IFolder createFolderFromDirectory(File directory, IProject project, String destFolderName)
      throws CoreException {
    IFolder destFolder = project.getFolder(destFolderName);
    MiscFileUtils.copyDirContentsIntoDirectory(directory, destFolder.getLocation().toFile());
    destFolder.refreshLocal(IResource.DEPTH_INFINITE, null);
    return destFolder;
  }
 
}
View Full Code Here

        LOG.info(NLS.bind(Messages.ResourceFilteringBuildParticipant_Executing_Resource_Filtering,project.getName()));
        executeCopyResources(facade, configuration, targetFolder, resources, monitor);
        //FIXME deal with absolute paths
        IFolder destFolder = project.getFolder(targetFolder);
        if (destFolder.exists()){
          destFolder.refreshLocal(IResource.DEPTH_INFINITE, monitor);
        }
      }
    } finally {
      ThreadBuildContext.setThreadBuildContext(oldBuildContext);
    }
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.