/**
* This method is called when the exportMultipleFiles 'browse' button is selected.
*/
private void chooseExportDirectory()
{
DirectoryDialog dialog = new DirectoryDialog( PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell() );
dialog.setText( Messages.getString( "ExportSchemasAsXmlWizardPage.ChooseFolder" ) ); //$NON-NLS-1$
dialog.setMessage( Messages.getString( "ExportSchemasAsXmlWizardPage.SelectFolderToExport" ) ); //$NON-NLS-1$
if ( "".equals( exportMultipleFilesText.getText() ) ) //$NON-NLS-1$
{
dialog.setFilterPath( Activator.getDefault().getPreferenceStore().getString(
PluginConstants.FILE_DIALOG_EXPORT_SCHEMAS_XML ) );
}
else
{
dialog.setFilterPath( exportMultipleFilesText.getText() );
}
String selectedDirectory = dialog.open();
if ( selectedDirectory != null )
{
exportMultipleFilesText.setText( selectedDirectory );
}
}