java.awt.desktop.OpenFilesEvent Java Examples
The following examples show how to use
java.awt.desktop.OpenFilesEvent.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: _AppEventHandler.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
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)); }
Example #2
Source File: OpenCommand.java From gcs with Mozilla Public License 2.0 | 5 votes |
@Override public void openFiles(OpenFilesEvent event) { for (File file : event.getFiles()) { // We call this rather than directly to open(Path) above to allow the file opening to be // deferred until startup has finished OpenDataFileCommand.open(file.toPath()); } }
Example #3
Source File: NbApplicationAdapterJDK9.java From netbeans with Apache License 2.0 | 4 votes |
@Override public void openFiles(OpenFilesEvent e) { openFiles(e.getFiles()); }