public boolean visit(IResourceDelta delta) throws CoreException {
  IResource resource=delta.getResource();
  if ((resource instanceof IProject)) {
    iprojects.add((IProject)resource);
    return false;
  }
  return true;
}

public boolean visit ( IResourceDelta delta ) throws CoreException { IResource resource = delta . getResource ( ) ; if ( ( resource instanceof IProject ) ) { iprojects . add ( ( IProject ) resource ) ; return false ; } return true ; }
the visit method gets a resource and returns true or false depending on whether or not it wants to be called with the children of the resource . in this case , we return true unless the resource is a project representing a spec ( and thus whose resource is stored as a file ( in this case a directory ) with extension toolbox .
