Package org.eclipse.core.resources

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


      }
    }
    else {
      IResource resource = ResourcesPlugin.getWorkspace().getRoot().findMember(path);
      if (resource.exists()) {
        resource.refreshLocal(IResource.DEPTH_INFINITE, new NullProgressMonitor());
      }
    }
    request.getWriter().println("ok");
  }
}
View Full Code Here


        File file = res.getLocation().toFile();
        if (file.exists()) {
          FileUtilities.deleteRecursively(file);
          deletedUnderlyingFile = true;
        }
        res.refreshLocal(IResource.DEPTH_ONE, m);
      }
      if (!deletedUnderlyingFile) {
        IFile theFile = getWorkspaceRoot().getFile(_path);
        IContainer theFolder = getWorkspaceRoot().getFolder(_path);
        if (theFolder instanceof IFolder && theFolder.exists()) {
View Full Code Here

             * File resFile = res.getLocation().toFile(); if
             * (!resFile.renameTo(newName.toFile())) { throw ce; }
             */
          }
        }
        res.refreshLocal(IResource.DEPTH_ONE, m);
      }
      return res;
    }
    return null;
  }
View Full Code Here

      IFolder folder = container.getProject().getFolder(defaultDescriptorLocation);
      for (IPath iPath : generateResources) {
        iPath = iPath.makeRelativeTo(folder.getLocation());
        IResource findMember = folder.findMember(iPath);
        if (findMember != null) {
          findMember.refreshLocal(IResource.DEPTH_INFINITE, new NullProgressMonitor());
          findMember.getParent().refreshLocal(IResource.DEPTH_ONE, new NullProgressMonitor());
        }

      }
      folder.refreshLocal(IResource.DEPTH_INFINITE, new SubProgressMonitor(monitor,
View Full Code Here

          Thread.interrupted();
        }
      }
    }
    if (ouputFolder != null) {
      ouputFolder.refreshLocal(IResource.DEPTH_INFINITE, new NullProgressMonitor());
    }
  }

  private void clearOutputFolder(File outputDir, boolean recursive) {
    IPreferenceStore store = RutaIdePlugin.getDefault().getPreferenceStore();
View Full Code Here

                        long currentTimeMillis = System.currentTimeMillis();
                        if (doSynchAt == null || currentTimeMillis > doFullSynchAt) {
                            directMembersChecked.put(firstSegment, currentTimeMillis + (60 * 2 * 1000));
                            //OK, we can get to the 1st segment, so, let's do a refresh just from that point on, not in the whole workspace...
                            try {
                                firstSegmentResource.refreshLocal(p.segmentCount(), null);
                            } catch (CoreException e) {
                                //ignore
                            }
                        }

View Full Code Here

                    for (Iterator<IResource> iter = selectedResources.iterator(); iter.hasNext();) {
                        IResource next = iter.next();
                        if (getRefreshBeforeExecute()) {
                            //as files are generated externally, if we don't refresh, it's very likely that we won't delete a bunch of files.
                            try {
                                next.refreshLocal(IResource.DEPTH_INFINITE, monitor);
                            } catch (Exception e) {
                                Log.log(e);
                            }
                        }
                        nChanged[0] += doActionOnResource(next, monitor);
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.