Package org.eclipse.core.resources

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


      File pptpFile = bundleAccess.getResourceAsFile(new URL(uri.toString()));
      IFile targetFile = targetProject.getFile(pptpFile.getName());
      if(targetFile.exists()) {
        if(pptpFile.lastModified() > targetFile.getLocalTimeStamp()) {
          targetFile.delete(IFile.FORCE | IFile.ALWAYS_DELETE_PROJECT_CONTENT, monitor);
          targetFile.refreshLocal(IFile.DEPTH_ZERO, monitor);
          targetFile.create(new FileInputStream(pptpFile), true, monitor);
        }
      }
      else {
        // delete all prefix-* resources already there (either none, or some other/older .pptp)
View Full Code Here


         
          ReviewIssueXmlSerializer.write(reviewId, reviewIssueModel, file, iFile);
         
          try {
            if (iFile.isDerived()) {
              iFile.refreshLocal(IResource.DEPTH_ONE, null);
            }
          }
          catch (CoreException e) {
            e.printStackTrace();
          }
View Full Code Here

        if (FileResource.getActiveProject().getName().equals(project.getName())) {
          File configFile = copyDefaultConfigFileTo(jupiterConfigFile);
          reader = xmlif.createXMLStreamReader(configFile.getAbsolutePath(),
              new FileInputStream(configFile));
          property = StaxPropertyXmlUtil.parsePropertyFile(reader);
          jupiterConfigIFile.refreshLocal(IResource.DEPTH_ONE, null);
        }
      }
    }
    catch (FileNotFoundException e) {
      throw new ReviewException("FileNotFoundException: " + e.getMessage(), e);
View Full Code Here

      throws ReviewException {
    IFile outputPropertyIFile = project.getFile(PROPERTY_XML_FILE);
    try {
      // try to refresh the resource since some plugins (CVS)
      // don't refresh after updating the project files
      outputPropertyIFile.refreshLocal(IResource.DEPTH_ONE, null);
    }
    catch (CoreException e) {
      log.error(e);
    }
   
View Full Code Here

          log.error(e);
        }
       
        try {
          // try to refresh the resource since we wrote to it
          outputPropertyIFile.refreshLocal(IResource.DEPTH_ONE, null);
        }
        catch (CoreException e) {
          log.error(e);
        }
      }
View Full Code Here

    if (file.exists()) {
      if (!reviewFile.exists()) {
        // Makes sure the parent directories of the review file are created.
        reviewFile.getParentFile().mkdirs();
        reviewFile.createNewFile();
        file.refreshLocal(IResource.DEPTH_ONE, null);
        file.setContents(new FileInputStream(reviewFile), true, false, null);
      }
    }
    else {
      if (!reviewFile.exists()) {
View Full Code Here

    else {
      if (!reviewFile.exists()) {
        // makes sure the parent directories of the review file are created.
        reviewFile.getParentFile().mkdirs();
        reviewFile.createNewFile();
        file.refreshLocal(IResource.DEPTH_ONE, null);
        file.setContents(new FileInputStream(reviewFile), true, false, null);
      }
      else {
        file.create(new FileInputStream(reviewFile), true, null);
      }
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.