protected void removeProvisonalProject ( ) { if ( ! this . currProject . exists ( ) ) { this . currProject = null ; return ; } final IRunnableWithProgress op = new IRunnableWithProgress ( ) { @ SuppressWarnings ( "synthetic-access" ) @ Override public void run ( IProgressMonitor monitor ) throws InvocationTargetException , InterruptedException { doRemoveProject ( monitor ) ; } } ; try { getContainer ( ) . run ( true , true , new WorkspaceModifyDelegatingOperation ( op ) ) ; } catch ( InvocationTargetException e ) { final String title = NewWizardMessages . NewJavaProjectWizardPageTwo_error_remove_title ; final String message = NewWizardMessages . NewJavaProjectWizardPageTwo_error_remove_message ; ExceptionHandler . handle ( e , getShell ( ) , title , message ) ; } catch ( InterruptedException e ) { // cancel pressed } }
Removes the provisional project . The provisional project is typically removed when the user cancels the wizard or goes back to the first page .