Transpiled version (370L) is out of date.
1 | !include once #1020737 // global functions |
2 | |
3 | do not include function dm_current_generic. |
4 | do not include function dm_current_mandatory_generic. |
5 | |
6 | lib 1019849 // Loadable Utils |
7 | import loadableUtils.utils; |
8 | import static loadableUtils.utils.fail; |
9 | //import static loadableUtils.utils.print_byThread; |
10 | //import static loadableUtils.utils.print_byThread_dontCreate; |
11 | import static loadableUtils.utils._threadInfo; |
12 | import static loadableUtils.utils._threadInheritInfo; |
13 | import static loadableUtils.utils._threadInfo_addMakerAndRetriever; |
14 | import static loadableUtils.utils.dm_currentModule; |
15 | import static loadableUtils.utils.dm_current_mandatory; |
16 | import static loadableUtils.utils.match; |
17 | //import static loadableUtils.utils.getOpt; // getOpt is in x30 |
18 | import static loadableUtils.utils.getOpt_raw; |
19 | //import static loadableUtils.utils.setOpt; // TODO: move to x30? |
20 | import static loadableUtils.utils.setOpt_raw; |
21 | import static loadableUtils.utils.getField; |
22 | import static loadableUtils.utils.fieldType; |
23 | import static loadableUtils.utils.format3; |
24 | import static loadableUtils.utils.vm_generalIdentityHashSet; |
25 | import static loadableUtils.utils.vm_generalHashMap; |
26 | import static loadableUtils.utils.vm_generalWeakSubMap; |
27 | import static loadableUtils.utils.bindToComponent; |
28 | import static loadableUtils.utils.struct; |
29 | import static loadableUtils.utils.structure; |
30 | import static loadableUtils.utils.loadPage; |
31 | import static loadableUtils.utils.loadPage_utf8; |
32 | import static loadableUtils.utils.loadPageSilentlyWithTimeout; |
33 | import static loadableUtils.utils.loadPageSilently; |
34 | //import static loadableUtils.utils.loadPageWithUserAgent; // TODO: fix the src lib compilation problem |
35 | import static loadableUtils.utils.loadSnippet; |
36 | import static loadableUtils.utils.loadSnippetQuietly; |
37 | import static loadableUtils.utils.sendToLocalBot; |
38 | import static loadableUtils.utils.sendToLocalBotOpt; |
39 | import static loadableUtils.utils.sendToLocalBotQuietly; |
40 | import static loadableUtils.utils.componentPopupMenu; |
41 | import static loadableUtils.utils.componentPopupMenu_top; |
42 | import static loadableUtils.utils.componentPopupMenu_initForComponent; |
43 | import static loadableUtils.utils.componentPopupMenu_getEvent; |
44 | import static loadableUtils.utils.listPopupMenu; |
45 | import static loadableUtils.utils.tablePopupMenu; |
46 | import static loadableUtils.utils.tablePopupMenuFirst; |
47 | import static loadableUtils.utils.rowSorter_setComparators; |
48 | import static loadableUtils.utils.sexyTableWithoutDrag; |
49 | import static loadableUtils.utils.dm_current_generic; |
50 | import static loadableUtils.utils.dm_current_mandatory_generic; |
51 | //import static loadableUtils.utils.cget; // it's mapMethodLike |
52 | import static loadableUtils.utils.cset; |
53 | import static loadableUtils.utils.DynamicObject_loading; |
54 | //import static loadableUtils.utils.withDBLock; |
55 | import static loadableUtils.utils.concepts_unlisted; |
56 | import static loadableUtils.utils.makePopupMenuConditional; |
57 | import static loadableUtils.utils.makeConceptsTable_idWidth; |
58 | import static loadableUtils.utils.showConceptsTable_afterUpdate; |
59 | import static loadableUtils.utils.dynamicObjectIsLoading; |
60 | import static loadableUtils.utils.rethrow; |
61 | import static loadableUtils.utils.hasBot; |
62 | //import static loadableUtils.utils.interceptPrintInThisThread; |
63 | import static loadableUtils.utils.concepts_internStringsLongerThan; |
64 | import static loadableUtils.utils.concepts_setUnlistedByDefault; |
65 | import static loadableUtils.utils.realMC_tl; |
66 | |
67 | // import static loadableUtils.utils.getProgramID; // XXX - should do, but possible breaking change |
68 | |
69 | //please include function programID. |
70 | !include once #1027168 // programID variable - WHY? |
71 | // XXX please include function print. |
72 | |
73 | // for print-to-module |
74 | // XXX? please include function tempInterceptPrintIfNotIntercepted. |
75 | |
76 | svoid _onLoad_initUtils { utils.__javax = javax(); } |
77 | |
78 | import loadableUtils.utils.F0; |
79 | import loadableUtils.utils.F1; |
80 | import loadableUtils.utils.IF0; |
81 | import loadableUtils.utils.IF1; |
82 | import loadableUtils.utils.IVF1; |
83 | import loadableUtils.utils.IVF2; |
84 | import loadableUtils.utils.Matches; |
85 | import loadableUtils.utils.BetterLabel; |
86 | import loadableUtils.utils.SingleComponentPanel; |
87 | import loadableUtils.utils.Snippet; |
88 | import loadableUtils.utils.Q; |
89 | import loadableUtils.utils.ImageSurface; |
90 | import loadableUtils.utils.structure_Data; |
91 | import loadableUtils.utils.structure_ClassInfo; |
92 | import loadableUtils.utils.RGBImage; |
93 | import loadableUtils.utils.RGB; |
94 | import loadableUtils.utils.BWImage; |
95 | import loadableUtils.utils.MakesBufferedImage; |
96 | //import loadableUtils.utils.DynamicObject; |
97 | import loadableUtils.utils.MultiSet; |
98 | import loadableUtils.utils.Concept; |
99 | import loadableUtils.utils.Concepts; |
100 | import loadableUtils.utils.RC; |
101 | import loadableUtils.utils.IConceptIndex; |
102 | import loadableUtils.utils.IFieldIndex; |
103 | import loadableUtils.utils.ImageSurfaceSelector; |
104 | //import loadableUtils.utils.Cache; // because often used with string function references |
105 | import loadableUtils.utils.SimpleCRUD; |
106 | import loadableUtils.utils.PersistableThrowable; |
107 | |
108 | import loadableUtils.utils.DynModule; |
109 | import loadableUtils.utils.DynPrintLog; |
110 | import loadableUtils.utils.DynObjectTable; |
111 | import loadableUtils.utils.DynImageSurface; |
112 | import loadableUtils.utils.DynCalculatedList; |
113 | import loadableUtils.utils.GlobalID; |
114 | import loadableUtils.utils.Rect; |
115 | import loadableUtils.utils.Pt; |
116 | import loadableUtils.utils.SynchronizedArrayList; |
117 | //import loadableUtils.utils.IntRange; |
118 | //import loadableUtils.utils.LongRange; |
119 | import loadableUtils.utils.SecretValue; |
120 | |
121 | svoid _onLoad_defaultClassFinder() { |
122 | setDefaultClassFinder(new F1<S, Class>() { |
123 | public Class get(S name) { |
124 | Class c = findClass_fullName(name); |
125 | if (c != null) ret c; |
126 | if (name.startsWith("main$")) |
127 | ret loadableUtils.utils.findClass_fullName("loadableUtils.utils" + name.substring(4)); |
128 | null; |
129 | } |
130 | }); |
131 | } |
132 | |
133 | /*svoid _onLoad_printByThread() { |
134 | print_byThread = loadableUtils.utils.print_byThread(); |
135 | }*/ |
136 | |
137 | meta-comment { We need these functions in main class because they may call String functions (callMC). } |
138 | |
139 | //!include once #1020728 // callF + callMC + call |
140 | function callF is in #1020728. |
141 | function callMC is in #1020728. |
142 | function call is in #1020728. |
143 | |
144 | !include once #1028442 // Do this always to make Concepts as module field work |
145 | //function dynamicObjectIsLoading_threadLocal is in #1028442. |
146 | |
147 | !include once #1023504 // now empty |
148 | |
149 | import loadableUtils.utils.HCRUD; |
150 | import loadableUtils.utils.HCRUD_Data; |
151 | import loadableUtils.utils.HCRUD_Concepts; |
152 | import loadableUtils.utils.ValueConverterForField; |
153 | import loadableUtils.utils.DefaultValueConverterForField; |
154 | import loadableUtils.utils.OrError; |
155 | import loadableUtils.utils.HTML; |
Began life as a copy of #1025826
download show line numbers debug dex old transpilations
Travelled to 9 computer(s): bhatertpkbcr, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, qsqiayxyrbia, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1027167 |
Snippet name: | Compact Module Include v3 (only including callF etc. when required, LIVE) |
Eternal ID of this version: | #1027167/33 |
Text MD5: | f8ba163f75a3813f5ec574dd5efc8780 |
Author: | stefan |
Category: | javax / stefan's os |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-08-12 05:29:24 |
Source code size: | 6708 bytes / 155 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 318 / 3501 |
Version history: | 32 change(s) |
Referenced in: | [show references] |