Package org.eclipse.core.resources

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


                    for (Iterator<IContainer> iter = selectedContainers.iterator(); iter.hasNext();) {
                        IContainer 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] += doActionOnContainer(next, monitor);
View Full Code Here


      IContainer parent = targetFolder.getParent();
      LOG.info(NLS.bind(Messages.ResourceFilteringBuildParticipant_Cleaning_Filtered_Folder,project.getName()));
      IProgressMonitor monitor =new NullProgressMonitor();
      targetFolder.delete(true, monitor);
      if (parent != null) {
        parent.refreshLocal(IResource.DEPTH_INFINITE, monitor );
      }
    }   
  }

 
View Full Code Here

    SubMonitor subMonitor = SubMonitor.convert(monitor, outputConfigurations.size());
    for (OutputConfiguration config : outputConfigurations.values()) {
      SubMonitor child = subMonitor.newChild(1);
      final IProject project = ctx.getBuiltProject();
      IContainer container = getContainer(project, config.getOutputDirectory());
      container.refreshLocal(IResource.DEPTH_INFINITE, child);
    }
  }

  protected void cleanOutput(IBuildContext ctx, OutputConfiguration config, IProgressMonitor monitor) throws CoreException {
    final IProject project = ctx.getBuiltProject();
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.