/**
*
*/
BookFiles createBookFiles() {
BookFiles result = null;
Stopwatch stopwatch = new Stopwatch();
stopwatch.start();
if (workingDirField.isSelectedFile()
&& ! bookFilesList.getFiles().isEmpty()
&& tocFileField.isSelectedFile()
&& coverFileField.isSelectedFile()
) {
result = new BookFiles(
workingDirField.getSelectedFileAbsolutePath());
try {
result.addSrcFiles(bookFilesList.getFiles());
result.setToc(tocFileField.getSelectedFilePath());
result.setLoi(loiFileField.getSelectedFilePath());
result.setPersonalNotes(personalsFileField.getSelectedFilePath());
result.setColophon(colophonFileField.getSelectedFilePath());
result.setCoverImage(coverFileField.getSelectedFilePath());
} catch (IOException ex) {
logger.warning(ex.toString());
if (DEBUG) { ex.printStackTrace(); }
Dialogs.showErrorDialog(ex);
}