static Map filesForNiceButtons_map = weakIdentityHashMap(); static L filesForNiceButtons(L l, IVF1 action) { ret mapAndRecordToMap_reversed(filesForNiceButtons_map, l, func(final File f) -> TextImageAction { textImageActionToolTip( f.getName(), isImageFile(f) ? #1101250 : #1101231, r { pcallF(action, f) }, f2s(f) + " (" + toK(fileSize(f)) + " K)",) }); } static L filesForNiceButtons(L l) { ret filesForNiceButtons(l, f -> { thread { genericUI_openFile(f); }}); }