* @return The export dialog to select a path.
* @since 3.0
*/
protected ExportDialog getExportDialog(final ExportFormat format) {
if(fileChooserExport==null)
fileChooserExport = new ExportDialog(pathExport);// currentFile==null ? pathExport : currentFile.getPath());
// Setting the dialog.
fileChooserExport.removeChoosableFileFilter(fileChooserExport.getFileFilter());
fileChooserExport.setFileFilter(fileChooserExport.getAcceptAllFileFilter());
fileChooserExport.setFileFilter(format.getFilter());