Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

120
LINES

< > BotCompany Repo | #1025826 // Compact Module Include 2 [old]

JavaX fragment (include)

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.print_byThread;
9  
//import static loadableUtils.utils.print_byThread_dontCreate;
10  
import static loadableUtils.utils._threadInfo;
11  
import static loadableUtils.utils._threadInheritInfo;
12  
import static loadableUtils.utils._threadInfo_addMakerAndRetriever;
13  
import static loadableUtils.utils.dm_currentModule;
14  
import static loadableUtils.utils.dm_current_mandatory;
15  
import static loadableUtils.utils.match;
16  
//import static loadableUtils.utils.getOpt; // getOpt is in x30
17  
import static loadableUtils.utils.getOpt_raw;
18  
//import static loadableUtils.utils.setOpt; // TODO: move to x30?
19  
import static loadableUtils.utils.setOpt_raw;
20  
import static loadableUtils.utils.getField;
21  
import static loadableUtils.utils.fieldType;
22  
import static loadableUtils.utils.format3;
23  
import static loadableUtils.utils.vm_generalIdentityHashSet;
24  
import static loadableUtils.utils.vm_generalHashMap;
25  
import static loadableUtils.utils.vm_generalWeakSubMap;
26  
import static loadableUtils.utils.bindToComponent;
27  
import static loadableUtils.utils.struct;
28  
import static loadableUtils.utils.structure;
29  
import static loadableUtils.utils.loadPage;
30  
import static loadableUtils.utils.loadPage_utf8;
31  
import static loadableUtils.utils.loadPageSilentlyWithTimeout;
32  
import static loadableUtils.utils.loadPageSilently;
33  
//import static loadableUtils.utils.loadPageWithUserAgent; // TODO: fix the src lib compilation problem
34  
import static loadableUtils.utils.loadSnippet;
35  
import static loadableUtils.utils.loadSnippetQuietly;
36  
import static loadableUtils.utils.sendToLocalBot;
37  
import static loadableUtils.utils.componentPopupMenu;
38  
import static loadableUtils.utils.componentPopupMenu_top;
39  
import static loadableUtils.utils.componentPopupMenu_initForComponent;
40  
import static loadableUtils.utils.componentPopupMenu_getEvent;
41  
import static loadableUtils.utils.listPopupMenu;
42  
import static loadableUtils.utils.tablePopupMenu;
43  
import static loadableUtils.utils.tablePopupMenuFirst;
44  
import static loadableUtils.utils.rowSorter_setComparators;
45  
import static loadableUtils.utils.sexyTableWithoutDrag;
46  
import static loadableUtils.utils.dm_current_generic;
47  
import static loadableUtils.utils.dm_current_mandatory_generic;
48  
//import static loadableUtils.utils.cget; // it's mapMethodLike
49  
import static loadableUtils.utils.cset;
50  
import static loadableUtils.utils.DynamicObject_loading;
51  
//import static loadableUtils.utils.withDBLock;
52  
import static loadableUtils.utils.concepts_unlisted;
53  
import static loadableUtils.utils.makePopupMenuConditional;
54  
import static loadableUtils.utils.makeConceptsTable_idWidth;
55  
import static loadableUtils.utils.showConceptsTable_afterUpdate;
56  
import static loadableUtils.utils.dynamicObjectIsLoading;
57  
//import static loadableUtils.utils.interceptPrintInThisThread;
58  
59  
please include function programID.
60  
please include function print.
61  
62  
// for print-to-module
63  
please include function tempInterceptPrintIfNotIntercepted.
64  
65  
svoid _onLoad_initUtils { utils.__javax = javax(); }
66  
67  
import loadableUtils.utils.F0;
68  
import loadableUtils.utils.F1;
69  
import loadableUtils.utils.IF1;
70  
import loadableUtils.utils.Matches;
71  
import loadableUtils.utils.BetterLabel;
72  
import loadableUtils.utils.SingleComponentPanel;
73  
import loadableUtils.utils.Snippet;
74  
import loadableUtils.utils.Q;
75  
import loadableUtils.utils.ImageSurface;
76  
import loadableUtils.utils.structure_Data;
77  
import loadableUtils.utils.structure_ClassInfo;
78  
import loadableUtils.utils.RGBImage;
79  
import loadableUtils.utils.RGB;
80  
import loadableUtils.utils.BWImage;
81  
import loadableUtils.utils.MakesBufferedImage;
82  
//import loadableUtils.utils.DynamicObject;
83  
import loadableUtils.utils.MultiSet;
84  
import loadableUtils.utils.Concept;
85  
import loadableUtils.utils.Concepts;
86  
import loadableUtils.utils.IConceptIndex;
87  
import loadableUtils.utils.IFieldIndex;
88  
import loadableUtils.utils.Derefable;
89  
import loadableUtils.utils.ImageSurfaceSelector;
90  
//import loadableUtils.utils.Cache; // because often used with string function references
91  
import loadableUtils.utils.SimpleCRUD;
92  
import loadableUtils.utils.PersistableThrowable;
93  
94  
import loadableUtils.utils.DynModule;
95  
import loadableUtils.utils.DynPrintLog;
96  
import loadableUtils.utils.DynObjectTable;
97  
import loadableUtils.utils.DynImageSurface;
98  
import loadableUtils.utils.DynCalculatedList;
99  
import loadableUtils.utils.Rect;
100  
import loadableUtils.utils.Pt;
101  
//import loadableUtils.utils.IntRange;
102  
//import loadableUtils.utils.LongRange;
103  
104  
svoid _onLoad_defaultClassFinder() {
105  
  setDefaultClassFinder(func(S name) -> Class {
106  
    Class c = findClass_fullName(name);
107  
    if (c != null) ret c;
108  
    if (startsWith(name, "main$"))
109  
      ret loadableUtils.utils.findClass_fullName("loadableUtils.utils" + substring(name, 4));
110  
    null;
111  
  });
112  
}
113  
114  
/*svoid _onLoad_printByThread() {
115  
  print_byThread = loadableUtils.utils.print_byThread();
116  
}*/
117  
118  
!include once #1020728 // callF + callMC + call
119  
120  
!include once #1023504 // now empty

Author comment

Began life as a copy of #1020738

download  show line numbers  debug dex  old transpilations   

Travelled to 9 computer(s): bhatertpkbcr, jcllbfdqhrgy, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1025826
Snippet name: Compact Module Include 2 [old]
Eternal ID of this version: #1025826/4
Text MD5: 35a720e844e8fbe3364a85b8c45c1152
Author: stefan
Category: javax / stefan's os
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-06-14 18:21:08
Source code size: 5193 bytes / 120 lines
Pitched / IR pitched: No / No
Views / Downloads: 255 / 1816
Version history: 3 change(s)
Referenced in: [show references]