class FoundRelevantDeltaException extends RuntimeException {
private static final long serialVersionUID = 7137113252936111022L; // backward compatible
// only the class name is used (to differenciate from other RuntimeExceptions)
}
try {
rootDelta.accept(new IResourceDeltaVisitor() {
public boolean visit(IResourceDelta delta) /* throws CoreException */ {
switch (delta.getKind()){
case IResourceDelta.ADDED :
case IResourceDelta.REMOVED :
throw new FoundRelevantDeltaException();