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));
}
java类java.awt.desktop.OpenFilesEvent的实例源码
_AppEventHandler.java 文件源码
项目:openjdk-jdk10
阅读 23
收藏 0
点赞 0
评论 0
_AppEventHandler.java 文件源码
项目:openjdk9
阅读 25
收藏 0
点赞 0
评论 0
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));
}
NbApplicationAdapterJDK9.java 文件源码
项目:incubator-netbeans
阅读 22
收藏 0
点赞 0
评论 0
@Override
public void openFiles(OpenFilesEvent e) {
openFiles(e.getFiles());
}