Bug 126727 [Team API] Removal of exception from IDiffTreeVisitor requires coordinatd release
I've been cleanup up the IDiffTree API and it turns out that the accept method and the IDiffTreeVisitor do not need to throw CoreException so I would like to remove them.The problem is that two classes in JDT and LTK declare and handle the exception so we need to coordinate the removal of the change. This can be done at any time that is convenient for tyou but must be in for M5.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/model/JavaSynchronizationContentProvider.java
*/
	private boolean hasChildrenInScope(final IResourceMappingScope scope, final Object element, final IResource resource) {
		final IResource[] roots= scope.getRoots();
		final IPath path= resource.getFullPath();
		if (element instanceof IPackageFragment) {
			for (int index= 0; index < roots.length; index++)
				if (path.equals(roots[index].getFullPath().removeLastSegments(1)))
					return true;
			return false;
		}
		for (int index= 0; index < roots.length; index++) {
			if (path.isPrefixOf(roots[index].getFullPath()))
				return true;
		}
		return false;
	}
	/**
	 * {@inheritDoc}
	 */
	protected boolean isInScope(final IResourceMappingScope scope, final Object parent, final Object element) {
		final IResource resource= JavaModelProvider.getResource(element);
		if (resource == null)
			return false;
		if (scope.contains(resource))
			return true;
		if (hasChildrenInScope(scope, element, resource))
			return true;
		return false;
	}
}