} } monitorDel.done(); monitor.done();
} } catch (CoreException e) {  } finally { monitor.done(); }
    public void unmanage(IProgressMonitor monitor) throws SVNException {        SVNProviderPlugin.run(new ISVNRunnable() {            public void run(IProgressMonitor monitor) throws SVNException {                monitor = Policy.monitorFor(monitor);                monitor.beginTask(null, 100);                            ISVNResource[] members = members(Policy.subMonitorFor(monitor, 20),FOLDER_MEMBERS | MANAGED_MEMBERS);                ArrayList dirs = new ArrayList();                for (int i = 0; i < members.length;i++)                    dirs.add(((ISVNLocalResource)members[i]).getIResource());                dirs.add(getIResource()); // we add the current folder to the list : we want to delete .svn dir for it too                                 IProgressMonitor monitorDel = Policy.subMonitorFor(monitor,80);                monitorDel.beginTask(null,dirs.size());                                                 for (int i = 0; i < dirs.size();i++) {                    monitorDel.worked(1);                    IContainer container = (IContainer)dirs.get(i);                    IFolder svnFolder = container.getFolder(new Path(SVNConstants.SVN_DIRNAME));                    if (svnFolder.exists()) {                        try {							svnFolder.delete(true,null);						} catch (CoreException e) {						}                    }                                    }                monitorDel.done();                monitor.done();             }        }, Policy.subMonitorFor(monitor, 99));    }