String path = resourceText.getText( ); File targetFolder = new File( path );       if ( !targetFolder.exists( ) ) { String[] buttons = new String[]{ IDialogConstants.YES_LABEL, IDialogConstants.NO_LABEL }; String question = Messages.getFormattedString( "DirectoryDialog.createQuestion", new Object[]{ path } ); MessageDialog d = new MessageDialog( getShell( ), Messages.getString( "DirectoryDialog.Question" ), null, question, MessageDialog.QUESTION, buttons, 0 ); int ret = d.open( ); if(ret == Window.OK) { targetFolder.mkdirs( ); } }
	public boolean performOk( )	{		String path = resourceText.getText( );		File targetFolder = new File( path );//		if ( !targetFolder.isDirectory( ) )//		{//			ExceptionHandler.openErrorMessageBox( Messages.getString( "PublishLibraryAction.wizard.errorTitle" ), //$NON-NLS-1$//					Messages.getString( "PublishLibraryAction.wizard.notvalidfolder" ) ); //$NON-NLS-1$//			return true;//		}		if ( !targetFolder.exists( ) )		{			String[] buttons = new String[]{					IDialogConstants.YES_LABEL,					IDialogConstants.NO_LABEL			};			String question = Messages.getFormattedString( "DirectoryDialog.createQuestion", //$NON-NLS-1$					new Object[]{					path					} );			MessageDialog d = new MessageDialog( getShell( ),					Messages.getString( "DirectoryDialog.Question" ), //$NON-NLS-1$					null,					question,					MessageDialog.QUESTION,					buttons,					0 );			int ret = d.open( );			if(ret == Window.OK)			{				targetFolder.mkdirs( );			}		}				ReportPlugin.getDefault( )				.setResourcePreference( path );		return super.performOk( );	}