if ( view.getSelectedCount() > 1 ) {
exportFile = new File( "image_$n.jpg" );
} else {
exportFile = new File( "image.jpg" );
}
ExportDlg dlg = new ExportDlg( null, true );
dlg.setFilename( exportFile.getAbsolutePath() );
int retval = dlg.showDialog();
if ( retval == ExportDlg.EXPORT_OPTION ) {
Container c = view.getTopLevelAncestor();
Cursor oldCursor = c.getCursor();
c.setCursor( new Cursor( Cursor.WAIT_CURSOR ) );
String exportFileTmpl = dlg.getFilename();
int exportWidth = dlg.getImgWidth();
int exportHeight = dlg.getImgHeight();
Collection selection = view.getSelection();
if ( selection != null ) {
if ( selection.size() > 1 ) {
// Ensure that the numbering order is the same is in current view
PhotoInfo exportPhotos[]