}
File[] files = new File[fileArray.length()];
for (int i = 0; i < files.length; i++) {
files[i] = fileArray.get(i);
}
OpenFilesEvent event = new OpenFilesEvent(files);
UncaughtExceptionHandler ueh = GWT.getUncaughtExceptionHandler();
if (ueh != null) {
try {
handler.onOpenFiles(event);
} catch (Throwable e) {