/* * Determine if the resource is a descendant of an orphaned subtree. * If it is, purge the CVS folders of the subtree. */ private void handleOrphanedSubtree(IResource resource) { try { if (!CVSWorkspaceRoot.isSharedWithCVS(resource)) return; ICVSFolder folder; if (resource.getType() == IResource.FILE) { folder = CVSWorkspaceRoot.getCVSFolderFor(resource.getParent()); } else { folder = CVSWorkspaceRoot.getCVSFolderFor((IContainer) resource); } handleOrphanedSubtree(folder); } catch (CVSException e) { CVSProviderPlugin.log(e); } }