/**
* {@inheritDoc}
*/
public ImageExportOptions saveFile( ImageExportOptions options,
Frame parent ) {
final SaveExportSheet sheet = new SaveExportSheet();
//
// Chop off filename extension so we don't get proposed filenames like
// "myimage.CRW.jpg".
//
String fileName = FileUtil.trimExtensionOf( options.getExportFile() );
//
// Add a suffix so it makes it much harder for a user to overwrite an
// original JPEG or TIFF file.
//
if ( !fileName.endsWith( "_lzn" ) )
fileName += "_lzn";
sheet.showSaveAndWait(
parent, new File( fileName ),
new ImageExportOptions[]{ options }
);
return sheet.getExportOptions();
}