removeMeposeModel(project); if( ! this.newProjectModel.isProjectNewlyCreated()) { return super.performCancel(); } try { project.delete(true,true,new NullProgressMonitor()); } catch (CoreException exception) { MeposeUIPlugin.log("Could not delete project.",exception); MessageDialog.openError(getShell(), "Error", "Could not delete project:"+project.getName()); return false; }
    public boolean performCancel() {        IProject project = (IProject)this.newProjectModel.getPropertyValue(NewProjectModel.ID_NEWPROJECTMODEL_PROJECT_INSTANCE);        Boolean projectNewlyCreated = ((Boolean)this.newProjectModel.getPropertyValue(NewProjectModel.ID_NEWPROJECTMODEL_STATE_CREATED_PROJECT));        if(project != null && projectNewlyCreated != null && projectNewlyCreated.booleanValue()) {            try {                project.delete(true,true,new NullProgressMonitor());            } catch (CoreException exception) {                if(logger.isDebugEnabled()) {                    logger.error("Could not remove project:"+exception);                }                MessageDialog.openError(getShell(), "Error", "Could not delete project:"+project.getName());                return false;            }        }        return super.performCancel();    }