void performUsing(final OpenFilesHandler handler, final _NativeEvent event) { // create file list from fileNames final List<String> fileNameList = event.get(0); final ArrayList<File> files = new ArrayList<File>(fileNameList.size()); for (final String fileName : fileNameList) files.add(new File(fileName)); // populate the properties map final String searchTerm = event.get(1); handler.openFiles(new OpenFilesEvent(files, searchTerm)); }
@Override public void openFiles(OpenFilesEvent e) { openFiles(e.getFiles()); }