IProgressMonitor monitorDel = Policy.subMonitorFor(monitor, 80);
IProgressMonitor monitorDel = Policy.subMonitorFor(pm, 80);
    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);                    recursiveUnmanage(container, monitorDel);                }                monitorDel.done();                monitor.done();            }            private void recursiveUnmanage(IContainer container,                    IProgressMonitor monitor) {                try {                    monitor.beginTask(null, 10);                    monitor.subTask(container.getFullPath().toOSString());                    IResource[] members = container.members(true);                    for (int i = 0; i < members.length; i++) {                        monitor.worked(1);                        IResource resource = members[i];                        if (members[i].getType() != IResource.FILE) {                            recursiveUnmanage((IContainer) resource, monitor);                        }                    }                    // Post order traversal to make sure resources are not                    // orphaned                    IFolder svnFolder = container.getFolder(new Path(                            SVNConstants.SVN_DIRNAME));                    if (svnFolder.exists()) {                        try {                            svnFolder.delete(true, null);                        } catch (CoreException e) {                        }                    }                } catch (CoreException e) {                    // Just ignore and continue                } finally {                    monitor.done();                }            }        }, Policy.subMonitorFor(monitor, 99));    }