final boolean noProgressMonitor= Platform.getLocation().equals(fCurrProjectLocation);  if (monitor == null || noProgressMonitor) { monitor= new NullProgressMonitor(); }  monitor.beginTask(NewWizardMessages.getString("JavaProjectWizardSecondPage.operation.remove"), 3);  try { boolean removeContent= !fKeepContent && fCurrProject.isSynchronized(IResource.DEPTH_INFINITE); fCurrProject.delete(removeContent, false, monitor); } catch (CoreException e) { throw new InvocationTargetException(e); } finally { monitor.done(); fCurrProject= null; fKeepContent= false; }
doRemoveProject(monitor);
			public void run(IProgressMonitor monitor) throws InvocationTargetException {				final boolean noProgressMonitor= Platform.getLocation().equals(fCurrProjectLocation);				if (monitor == null || noProgressMonitor) {					monitor= new NullProgressMonitor();				}				monitor.beginTask(NewWizardMessages.getString("JavaProjectWizardSecondPage.operation.remove"), 3); //$NON-NLS-1$				try {                    boolean removeContent= !fKeepContent && fCurrProject.isSynchronized(IResource.DEPTH_INFINITE);                    fCurrProject.delete(removeContent, false, monitor);				} catch (CoreException e) {					throw new InvocationTargetException(e);				} finally {					monitor.done();					fCurrProject= null;					fKeepContent= false;				}			}