}
try {
ListingProcessor lpc = new ListingProcessor(new FileProcessor(
this.processingResult, renameConfig), renameConfig
.getSelection());
ListingProgressDialog lpd = new ListingProgressDialog(
getParentFrame());
lpd.setLocationRelativeTo(null);
lpc.setListingProgressListener(lpd);
lpd.setModal(false);
lpd.setVisible(true);
lpc.start().join();
lpd.processingFinished();
lpd.dispose();
// If an exception has occured during processing
if (lpc.getLastSeriouseException() != null) {
// Throw it, this blocks exception catch diplays the error.
throw lpc.getLastSeriouseException();
}
// If not aborted, display results
if (!lpd.abort()) {
/*
* Now some statistics must be refreshed if the directory pattern
* contains a bitrate.
* If the bitrate pattern is replaced by its value it may
* be possible a conflict arises.