public FileAnalysisSet getFileAnalysisSet(DiffEngine engine)
throws PanelInvalidException {
recalculateEnablement();
FileSystemFileSet fileSet = new FileSystemFileSet();
if (compareOption.isSelected()) {
fileSet.addFile(getFileForField(fileA));
fileSet.addFile(getFileForField(fileB));
boolean shouldCountIdentical = countIdentical.isEnabled()
&& countIdentical.isSelected();
engine.setSkipIdenticalFiles(shouldCountIdentical == false);
} else {
fileSet.addFile(getFileForField(fileA));
engine.setSkipIdenticalFiles(false);
}
try {
fileSet.validate();
} catch (FileSystemDiffException.FileNotFound e) {
throw new PanelInvalidException(resources.format(
"Dialog.File.File_Not_Found_FMT", e.getMissingFile().getPath()));
} catch (FileSystemDiffException.TypeMismatch e) {
throw new PanelInvalidException(resources.getStrings(