void () { var selection = myList.getSelectedRows(); if (selection.length == 1) { var item = myList.getRow(selection[0]); if (item.directory) { load(item.path, null, EnumSet.of(OpenFlags.UPDATE_PATH_BAR)); } else if (myDescriptor.isChooseJarContents() && myRegistry.getFileTypeByFileName(item.name) == ArchiveFileType.INSTANCE) { load(item.path, null, EnumSet.of(OpenFlags.UPDATE_PATH_BAR, OpenFlags.INTO_ARCHIVE)); } else { myCallback.run(); } } }