Package org.eclipse.core.resources

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


      IFile underlyingFile = getUnderlyingFile();
      if (!underlyingFile.exists()) {
        this.rebuildRequired = true;
        pbProject.saveChanges();
        try {
          underlyingFile.refreshLocal(IResource.DEPTH_ONE, null);
        } catch (CoreException e) {
          CorePlugin.getDefault().debug(this.getClass().getName() + "Error while refreshing PB.project: " + underlyingFile, e);
        }
      }
      addLocalFrameworkSectionToPBProject();
View Full Code Here


  protected void saveClassesIncludePatternList(List<String> list) {
    IFile classesIncludePatternset = this.getAntFolder().getFile("classes.include.patternset");
    PatternsetWriter.create(classesIncludePatternset, list.toArray(new String[list.size()]));
    this.classesIncludeMatcher = new PatternsetMatcher(classesIncludePatternset);
    try {
      classesIncludePatternset.refreshLocal(IResource.DEPTH_ONE, new NullProgressMonitor());
    } catch (CoreException e) {
      CorePlugin.getDefault().log(e);
    }
  }
View Full Code Here

  public void saveClassesExcludePatternList(List<String> list) {
    IFile classesExcludePatternset = this.getAntFolder().getFile("classes.exclude.patternset");
    PatternsetWriter.create(classesExcludePatternset, list.toArray(new String[list.size()]));
    this.classesExcludeMatcher = new PatternsetMatcher(classesExcludePatternset);
    try {
      classesExcludePatternset.refreshLocal(IResource.DEPTH_ONE, new NullProgressMonitor());
    } catch (CoreException e) {
      CorePlugin.getDefault().log(e);
    }
  }
View Full Code Here

  public void saveWOAppResourcesIncludePatternList(List<String> list) {
    IFile wsresourcesIncludePatternset = this.getAntFolder().getFile("wsresources.include.patternset");
    PatternsetWriter.create(wsresourcesIncludePatternset, list.toArray(new String[list.size()]));
    this.woappResourcesIncludeMatcher = new PatternsetMatcher(wsresourcesIncludePatternset);
    try {
      wsresourcesIncludePatternset.refreshLocal(IResource.DEPTH_ONE, new NullProgressMonitor());
    } catch (CoreException e) {
      CorePlugin.getDefault().log(e);
    }
  }
View Full Code Here

  public void saveWOAppResourcesExcludePatternList(List<String> list) {
    IFile wsresourcesExcludePatternset = this.getAntFolder().getFile("wsresources.exclude.patternset");
    PatternsetWriter.create(wsresourcesExcludePatternset, list.toArray(new String[list.size()]));
    this.woappResourcesExcludeMatcher = new PatternsetMatcher(wsresourcesExcludePatternset);
    try {
      wsresourcesExcludePatternset.refreshLocal(IResource.DEPTH_ONE, new NullProgressMonitor());
    } catch (CoreException e) {
      CorePlugin.getDefault().log(e);
    }
  }
View Full Code Here

  public void saveResourcesIncludePatternList(List<String> list) {
    IFile resourcesIncludePatternset = this.getAntFolder().getFile("resources.include.patternset");
    PatternsetWriter.create(resourcesIncludePatternset, list.toArray(new String[list.size()]));
    this.resourcesIncludeMatcher = new PatternsetMatcher(resourcesIncludePatternset);
    try {
      resourcesIncludePatternset.refreshLocal(IResource.DEPTH_ONE, new NullProgressMonitor());
    } catch (CoreException e) {
      CorePlugin.getDefault().log(e);
    }
  }
View Full Code Here

  public void saveResourcesExcludePatternList(List<String> list) {
    IFile resourcesexcludePatternset = this.getAntFolder().getFile("resources.exclude.patternset");
    PatternsetWriter.create(resourcesexcludePatternset, list.toArray(new String[list.size()]));
    this.resourcesIncludeMatcher = new PatternsetMatcher(resourcesexcludePatternset);
    try {
      resourcesexcludePatternset.refreshLocal(IResource.DEPTH_ONE, new NullProgressMonitor());
    } catch (CoreException e) {
      CorePlugin.getDefault().log(e);
    }
  }
View Full Code Here

    try {
      this.getModel().saveChanges();
      editorDirtyStateChanged();
      IFile file = this.getModel().getEclipseFile();
      if (file != null && file.exists()) {
        file.refreshLocal(IResource.DEPTH_INFINITE, null);
      }
      else {
        String location = this.getModel().getLocation();
        if (location != null) {
          file = ResourcesPlugin.getWorkspace().getRoot().getFileForLocation(new Path(location));
View Full Code Here

      else {
        String location = this.getModel().getLocation();
        if (location != null) {
          file = ResourcesPlugin.getWorkspace().getRoot().getFileForLocation(new Path(location));
          if (file != null) {
            file.refreshLocal(IResource.DEPTH_INFINITE, null);
          }
        }
      }
    } catch (Throwable t) {
      throw new RuntimeException("Failed to save .api file.", t);
View Full Code Here

    infoPListTemplate.addInput(new ProjectInput("buildProperties", projectAdapter.getBuildProperties()));
   
    targetContainer.refreshLocal(IResource.DEPTH_ZERO, null);
    infoPListTemplate.createProjectContents(project, targetContainer, new NullProgressMonitor());
    IFile infoPList = targetContainer.getFile(new Path("Info.plist"));
    infoPList.refreshLocal(IResource.DEPTH_ZERO, null);
    infoPList.setDerived(true, null);
  }

  private AbstractBaseActivator getLogger() {
    return BuilderPlugin.getDefault();
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.