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)

!include once #1020737 // global functions

do not include function dm_current_generic.
do not include function dm_current_mandatory_generic.

lib 1019849 // Loadable Utils
import loadableUtils.utils;
//import static loadableUtils.utils.print_byThread;
//import static loadableUtils.utils.print_byThread_dontCreate;
import static loadableUtils.utils._threadInfo;
import static loadableUtils.utils._threadInheritInfo;
import static loadableUtils.utils._threadInfo_addMakerAndRetriever;
import static loadableUtils.utils.dm_currentModule;
import static loadableUtils.utils.dm_current_mandatory;
import static loadableUtils.utils.match;
//import static loadableUtils.utils.getOpt; // getOpt is in x30
import static loadableUtils.utils.getOpt_raw;
//import static loadableUtils.utils.setOpt; // TODO: move to x30?
import static loadableUtils.utils.setOpt_raw;
import static loadableUtils.utils.getField;
import static loadableUtils.utils.fieldType;
import static loadableUtils.utils.format3;
import static loadableUtils.utils.vm_generalIdentityHashSet;
import static loadableUtils.utils.vm_generalHashMap;
import static loadableUtils.utils.vm_generalWeakSubMap;
import static loadableUtils.utils.bindToComponent;
import static loadableUtils.utils.struct;
import static loadableUtils.utils.structure;
import static loadableUtils.utils.loadPage;
import static loadableUtils.utils.loadPage_utf8;
import static loadableUtils.utils.loadPageSilentlyWithTimeout;
import static loadableUtils.utils.loadPageSilently;
//import static loadableUtils.utils.loadPageWithUserAgent; // TODO: fix the src lib compilation problem
import static loadableUtils.utils.loadSnippet;
import static loadableUtils.utils.loadSnippetQuietly;
import static loadableUtils.utils.sendToLocalBot;
import static loadableUtils.utils.componentPopupMenu;
import static loadableUtils.utils.componentPopupMenu_top;
import static loadableUtils.utils.componentPopupMenu_initForComponent;
import static loadableUtils.utils.componentPopupMenu_getEvent;
import static loadableUtils.utils.listPopupMenu;
import static loadableUtils.utils.tablePopupMenu;
import static loadableUtils.utils.tablePopupMenuFirst;
import static loadableUtils.utils.rowSorter_setComparators;
import static loadableUtils.utils.sexyTableWithoutDrag;
import static loadableUtils.utils.dm_current_generic;
import static loadableUtils.utils.dm_current_mandatory_generic;
//import static loadableUtils.utils.cget; // it's mapMethodLike
import static loadableUtils.utils.cset;
import static loadableUtils.utils.DynamicObject_loading;
//import static loadableUtils.utils.withDBLock;
import static loadableUtils.utils.concepts_unlisted;
import static loadableUtils.utils.makePopupMenuConditional;
import static loadableUtils.utils.makeConceptsTable_idWidth;
import static loadableUtils.utils.showConceptsTable_afterUpdate;
import static loadableUtils.utils.dynamicObjectIsLoading;
//import static loadableUtils.utils.interceptPrintInThisThread;

please include function programID.
please include function print.

// for print-to-module
please include function tempInterceptPrintIfNotIntercepted.

svoid _onLoad_initUtils { utils.__javax = javax(); }

import loadableUtils.utils.F0;
import loadableUtils.utils.F1;
import loadableUtils.utils.IF1;
import loadableUtils.utils.Matches;
import loadableUtils.utils.BetterLabel;
import loadableUtils.utils.SingleComponentPanel;
import loadableUtils.utils.Snippet;
import loadableUtils.utils.Q;
import loadableUtils.utils.ImageSurface;
import loadableUtils.utils.structure_Data;
import loadableUtils.utils.structure_ClassInfo;
import loadableUtils.utils.RGBImage;
import loadableUtils.utils.RGB;
import loadableUtils.utils.BWImage;
import loadableUtils.utils.MakesBufferedImage;
//import loadableUtils.utils.DynamicObject;
import loadableUtils.utils.MultiSet;
import loadableUtils.utils.Concept;
import loadableUtils.utils.Concepts;
import loadableUtils.utils.IConceptIndex;
import loadableUtils.utils.IFieldIndex;
import loadableUtils.utils.Derefable;
import loadableUtils.utils.ImageSurfaceSelector;
//import loadableUtils.utils.Cache; // because often used with string function references
import loadableUtils.utils.SimpleCRUD;
import loadableUtils.utils.PersistableThrowable;

import loadableUtils.utils.DynModule;
import loadableUtils.utils.DynPrintLog;
import loadableUtils.utils.DynObjectTable;
import loadableUtils.utils.DynImageSurface;
import loadableUtils.utils.DynCalculatedList;
import loadableUtils.utils.Rect;
import loadableUtils.utils.Pt;
//import loadableUtils.utils.IntRange;
//import loadableUtils.utils.LongRange;

svoid _onLoad_defaultClassFinder() {
  setDefaultClassFinder(func(S name) -> Class {
    Class c = findClass_fullName(name);
    if (c != null) ret c;
    if (startsWith(name, "main$"))
      ret loadableUtils.utils.findClass_fullName("loadableUtils.utils" + substring(name, 4));
    null;
  });
}

/*svoid _onLoad_printByThread() {
  print_byThread = loadableUtils.utils.print_byThread();
}*/

!include once #1020728 // callF + callMC + call

!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: 254 / 1815
Version history: 3 change(s)
Referenced in: [show references]