use of com.mucommander.viewer.FileViewer in project mucommander by mucommander.
the class FileViewerPresenter method show.
@Override
protected void show(AbstractFile file) throws IOException {
setCurrentFile(file);
if (fileViewer == null) {
MnemonicHelper menuItemMnemonicHelper = new MnemonicHelper();
viewerMenu.addSeparator();
closeMenuItem = MenuToolkit.addMenuItem(viewerMenu, Translator.get("file_viewer.close"), menuItemMnemonicHelper, KeyStroke.getKeyStroke(KeyEvent.VK_ESCAPE, 0), (e) -> {
fileViewer.close();
getFrame().dispose();
});
viewerMenu.add(closeMenuItem);
switchFileViewer(0);
}
}
Aggregations