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

145
LINES

< > BotCompany Repo | #1029927 // Loadable Utils v2 (old)

JavaX module (desktop) [tags: use-pretranspiled]

Download Jar. Uses 108K of libraries. Click here for Pure Java version (40852L/230K).

!759

sinterface Derefable { Concept get(); } // not used anymore but some programs have not been recompiled

// TODO: licensed

mainPackage loadableUtils
mainClassName utils

set flag AllPublic.

import static x30_pkg.x30_util.VF1;

import x30_pkg.x30_util.DynamicObject;

!include once #1001372 // direct nohupJavax 

!include once #1016530 // DynamicMethods
!include once #1011150 // BetterLabel
!include once #1005319 // SingleComponentPanel
!include once #1003519 // Snippet
!include once #1004247 // BWImage
!include once #1007582 // Cache

!include once #1015892 // DynModule
!include once #1016205 // DynPrintLog
!include once #1016978 // DynObjectTable
!include once #1018873 // DynImageSurface 
!include once #1015977 // DynCalculatedList

please include class SimpleCRUD.
please include class IntRange.
please include class LongRange.
please include class GlobalID.
please include class SynchronizedArrayList.
please include class SecretValue.

// We now also include HTML cruds because they're so useful
please include class HCRUD.
please include class HCRUD_Concepts.
please include class DefaultValueConverterForField.

please include function rethrow.
please include function isAWTThread.
please include function _handleError.
please include function call_checkArgs.
please include function fail.
please include function multiMapPut.
please include function endsWithLetterOrDigit.
please include function getExceptionCause.
please include function isAndroid.
please include function isHeadless.
please include function join.
please include function joinWithSpace.
please include function newWeakHashMap.
please include function javaTok.
please include function print_append.
please include function get.
please include function getOpt.
please include function getOpt_raw.
please include function set.
please include function setOpt.
please include function setOpt_raw.
please include function callF.
please include function call.
please include function callOpt.
please include function fixNewLines.
please include function uniqueString.
please include function doEvery.
please include function doLater.
please include function hasBot.
please include function nohupJavax.
please include function jlabel.
please include function newTypeWriterTextArea.
please include function struct.
please include function sfu.
please include function loadPageSilentlyWithTimeout.
please include function loadPageWithUserAgent.
please include function db.
please include function cget.
please include function cset.
please include function print.
please include function print_byThread.
please include function print_byThread_dontCreate.
please include function _threadInfo.
please include function _threadInheritInfo.
please include function _threadInfo_addMakerAndRetriever.
please include function match.
please include function getField.
please include function fieldType.
please include function format3.
please include function vm_generalIdentityHashSet.
please include function vm_generalHashMap.
please include function vm_generalWeakSubMap.
please include function bindToComponent.
please include function loadPage.
please include function loadPage_utf8.
please include function loadSnippet.
please include function loadSnippetQuietly.
please include function sendToLocalBot.
please include function sendToLocalBotOpt.
please include function sendToLocalBotQuietly.
please include function sexyTableWithoutDrag.
please include function tablePopupMenu.
please include function tablePopupMenuFirst.
please include function componentPopupMenu.
please include function componentPopupMenu_top.
please include function componentPopupMenu_getEvent.
please include function dm_current_generic.
please include function dm_current_mandatory_generic.
please include function withDBLock.
please include function makePopupMenuConditional.
please include function dynamicObjectIsLoading.
please include function interceptPrintInThisThread.
please include function rowSorter_setComparators.

sO creator() {
  ret callOpt(assertNotNull("No real MC", realMC_tl())!, 'creator);
}

sS programID;

sS getProgramID() {
  O mc = realMC_tl()!;
  if (mc != null) ret getProgramID(mc);
  ret nempty(programID) ? formatSnippetIDOpt(programID) : "?";
}

ifndef LeanMode
// TODO: ask JavaX instead
static String getProgramID(Class c) {
  S id = (String) getOpt(c, "programID");
  if (nempty(id))
    ret formatSnippetID(id);
  ret "?";
}
endifndef

static String getProgramID(Object o) {
  ret getProgramID(getMainClass(o));
}

static Concepts db_mainConcepts() {
  ret (Concepts) call(assertNotNull("No real MC", realMC()), 'db_mainConcepts);
}

Author comment

Began life as a copy of #1019849

download  show line numbers  debug dex  old transpilations   

Travelled to 26 computer(s): abdkfuuuzlrh, bhatertpkbcr, dmudagwnpltw, dpqxeycirhfy, ekrmjmnbrukm, elmgxqgtpvxh, fieshchysztm, hhusmcjygydo, iveijnkanddl, ixlofvyxkrco, lqnftawlhpir, mikhejdllvsw, mowyntqkapby, mqqgnosmbjvj, podlckwnjdmb, pyentgdyhuwx, qtdedymdshqb, rjpzpeejafvs, skddmizpvtmy, ubadkicnhrcp, uhjabitqdyqv, uwytdfmwznxb, veepotesqksf, vouqrxazstgt, xvimeffiorjm, xylnpskcbyhy

No comments. add comment

Snippet ID: #1029927
Snippet name: Loadable Utils v2 (old)
Eternal ID of this version: #1029927/6
Text MD5: 1c0660192aa96096b1d0df56e55eaf6f
Transpilation MD5: b2cd873769469e085dbaeaa2f87dddc5
Author: stefan
Category: javax
Type: JavaX module (desktop)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-08-13 15:37:30
Source code size: 4769 bytes / 145 lines
Pitched / IR pitched: No / No
Views / Downloads: 532 / 9997
Version history: 5 change(s)
Referenced in: #1030952 - Loadable Utils for Gazelle BEA [LIVE, see #1030953, edited by #1030951]
#1031186 - Loadable Utils v5