Package org.eclipse.core.internal.resources.mapping

Examples of org.eclipse.core.internal.resources.mapping.ChangeDescription


  /*
   * Get the roots of any changes.
   */
  private IResource[] getRootResources(IResourceDelta root) {
    final ChangeDescription changeDescription = new ChangeDescription();
    try {
      root.accept(new IResourceDeltaVisitor() {
        public boolean visit(IResourceDelta delta) {
          return changeDescription.recordChange(delta);
        }
      });
    } catch (CoreException e) {
      // Shouldn't happen since the ProposedResourceDelta accept doesn't throw an
      // exception and our visitor doesn't either
      Policy.log(IStatus.ERROR, "Internal error", e); //$NON-NLS-1$
    }
    return changeDescription.getRootResources();
  }
View Full Code Here

TOP

Related Classes of org.eclipse.core.internal.resources.mapping.ChangeDescription

Copyright © 2018 www.massapicom. 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.