try {
while (fileIterator.hasNext()) {
PresentationFile<?> file = fileIterator.next();
String text = ++i + " - " + file.getPath();
JMenuItem historyItem;
ShowHistoryFileContentListener listener =
new ShowHistoryFileContentListener(adapter.openZipContent(file.getPath()));
historyItem = itemFactory.create(text, String.valueOf(i).charAt(0), listener);
historyFileMenuItens.add(historyItem);
}
} catch (FileListContentAdapterException e) {
JOptionPane.showMessageDialog(null, BaseBundle.getValue("error.openning.file"));