1 | static void jShowFile(File f) { |
2 | if (!f.exists()) ret; |
3 | |
4 | if (f.isDirectory()) { |
5 | browseDir(f); |
6 | ret; |
7 | } |
8 | |
9 | if (f.getName().toLowerCase().endsWith(".mp4")) { |
10 | playVideo(f); |
11 | ret; |
12 | } |
13 | |
14 | // default to showing text |
15 | S data = readTextFile(f); |
16 | showText(f2s(f), data); |
17 | } |
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1004525 |
Snippet name: | jShowFile |
Eternal ID of this version: | #1004525/1 |
Text MD5: | a2ef1db7eb8aa07676343c998e674220 |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2016-08-19 16:23:54 |
Source code size: | 304 bytes / 17 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 618 / 621 |
Referenced in: | [show references] |