lib 1033505 // Loadable Utils for Gazelle V set flag PublicExceptTopClass. // so we can override methods set flag CleanImports. !include once #1020737 // global functions do not include function dm_current_generic. do not include function dm_current_mandatory_generic. 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.sendToLocalBotOpt; import static loadableUtils.utils.sendToLocalBotQuietly; 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.rethrow; import static loadableUtils.utils.hasBot; //import static loadableUtils.utils.interceptPrintInThisThread; import static loadableUtils.utils.concepts_internStringsLongerThan; import static loadableUtils.utils.concepts_setUnlistedByDefault; import static loadableUtils.utils.realMC_tl; // import static loadableUtils.utils.getProgramID; // XXX - should do, but possible breaking change //please include function programID. !include once #1027168 // programID variable - WHY? // XXX please include function print. // for print-to-module // XXX? please include function tempInterceptPrintIfNotIntercepted. svoid _onLoad_initUtils { utils.__javax = javax(); } import loadableUtils.utils.F0; import loadableUtils.utils.F1; import loadableUtils.utils.IF0; import loadableUtils.utils.IF1; import loadableUtils.utils.IVF1; import loadableUtils.utils.IVF2; 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.RC; import loadableUtils.utils.IConceptIndex; import loadableUtils.utils.IConceptCounter; import loadableUtils.utils.ItIt; import loadableUtils.utils.IFieldIndex; 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.GlobalID; import loadableUtils.utils.Rect; import loadableUtils.utils.Pt; import loadableUtils.utils.SynchronizedArrayList; //import loadableUtils.utils.IntRange; //import loadableUtils.utils.LongRange; import loadableUtils.utils.SecretValue; svoid _onLoad_defaultClassFinder() { setDefaultClassFinder(new F1() { public Class get(S name) { Class c = findClass_fullName(name); if (c != null) ret c; if (name.startsWith("main$")) ret loadableUtils.utils.findClass_fullName("loadableUtils.utils" + name.substring(4)); null; } }); } /*svoid _onLoad_printByThread() { print_byThread = loadableUtils.utils.print_byThread(); }*/ meta-comment { We need these functions in main class because they may call String functions (callMC). } //!include once #1020728 // callF + callMC + call function callF is in #1020728. function callMC is in #1020728. function call is in #1020728. !include once #1028442 // Do this always to make Concepts as module field work //function dynamicObjectIsLoading_threadLocal is in #1028442. !include once #1023504 // now empty import loadableUtils.utils.HCRUD; import loadableUtils.utils.HCRUD_Data; import loadableUtils.utils.HCRUD_Concepts; import loadableUtils.utils.ValueConverterForField; import loadableUtils.utils.DefaultValueConverterForField; import loadableUtils.utils.OrError; import loadableUtils.utils.HTML; // actually this will now always be included. doesn't cost much though ifclass Concepts please include function db_mainConcepts. endif import static loadableUtils.utils.uniqueString; import static loadableUtils.utils.fixNewLines; import static loadableUtils.utils.loadPageWithUserAgent; import static loadableUtils.utils._handleError; import static loadableUtils.utils.sfu; import static loadableUtils.utils.getExceptionCause; import static loadableUtils.utils.joinWithSpace; import static loadableUtils.utils.callF; import static loadableUtils.utils.javaTok; import static loadableUtils.utils.interceptPrintInThisThread; import static loadableUtils.utils.jlabel; import static loadableUtils.utils.doEvery; import static loadableUtils.utils.print_append; import static loadableUtils.utils.nohupJavax; import static loadableUtils.utils.multiMapPut; import static loadableUtils.utils.withDBLock; import static loadableUtils.utils.join; import static loadableUtils.utils.isAWTThread; import static loadableUtils.utils.print_byThread_dontCreate; import static loadableUtils.utils.set; import static loadableUtils.utils.print_byThread; import static loadableUtils.utils.call; import static loadableUtils.utils.fail; import static loadableUtils.utils.print; import static loadableUtils.utils.doLater; import static loadableUtils.utils.call_checkArgs; import static loadableUtils.utils.endsWithLetterOrDigit; import static loadableUtils.utils.cget; import static loadableUtils.utils.newTypeWriterTextArea; import static loadableUtils.utils.db; import loadableUtils.utils.LongRange; import loadableUtils.utils.IntRange; import loadableUtils.utils.FixedRateTimer; import loadableUtils.utils.SmartTimerTask; import loadableUtils.utils.Meta; import loadableUtils.utils.JSection; import loadableUtils.utils.JE_RepElement; import loadableUtils.utils.DefunctClassLoader; import loadableUtils.utils.ICachedJavaXExpr; import loadableUtils.utils.ITokCondition; import loadableUtils.utils.TokCondition; import loadableUtils.utils.JECompressionRegime; import loadableUtils.utils.IJavaExpr; import loadableUtils.utils.WithSideValue; import loadableUtils.utils.IntegerIterator; import loadableUtils.utils.RightAlignedLine; import loadableUtils.utils.PingSource; import loadableUtils.utils.SimpleLiveValue; import loadableUtils.utils.Matrix; import loadableUtils.utils.WindowDragger; import loadableUtils.utils.WindowResizeDragger; import loadableUtils.utils.Best; import loadableUtils.utils.CompactLinkedHashSet; import loadableUtils.utils.LLInt; import loadableUtils.utils.LInt; import loadableUtils.utils.JEInstantCompressor_AnyType; import loadableUtils.utils.GridCodec1; import loadableUtils.utils.GrabbableGrayPixels; import loadableUtils.utils.IHasBackRefs; import loadableUtils.utils.IRef; import loadableUtils.utils.TripleBool; import loadableUtils.utils.LeftAlignedLine; import loadableUtils.utils.RegisteredReference; import loadableUtils.utils.F2; import loadableUtils.utils.RandomAccessAbstractList; import loadableUtils.utils.F3; import loadableUtils.utils.SubMatrix; import loadableUtils.utils.IProbabilisticScheduler; import loadableUtils.utils.IBWIntegralImage; import loadableUtils.utils.Producer; import loadableUtils.utils.IntBuffer; import loadableUtils.utils.IWithSideValue; import loadableUtils.utils.NotifyingStringBuffer; import loadableUtils.utils.DynPrintLogAndEnabled; import loadableUtils.utils.Cache; import loadableUtils.utils.AbstractMatrix; import loadableUtils.utils.OKOrError; import loadableUtils.utils.WithTimestamp; import loadableUtils.utils.TreeSetWithDuplicates; import loadableUtils.utils.IMeta; import loadableUtils.utils.IProbabilistic; import loadableUtils.utils.LiteralJavaXExpr; import loadableUtils.utils.ListToMatrix; import loadableUtils.utils.ISetAndGet; import loadableUtils.utils.AbstractJavaXExpr; import loadableUtils.utils.LiveValue; import loadableUtils.utils.ToJava; import loadableUtils.utils.Dyn_FieldWatcher; import loadableUtils.utils.Timestamp; import loadableUtils.utils.DoubleRect; import loadableUtils.utils.LetterLayout; import loadableUtils.utils.Complex; import loadableUtils.utils.QuickException; import loadableUtils.utils.ProbabilisticScheduler; import loadableUtils.utils.JavaCodec; import loadableUtils.utils.JECompressionSearch; import loadableUtils.utils.CompressionSearch_AnyType; import loadableUtils.utils.RestartableCountdown; import loadableUtils.utils.Either; import loadableUtils.utils.Ratio; import loadableUtils.utils.Steppable; import loadableUtils.utils.FunctionCall; import loadableUtils.utils.IIntegralImage; import loadableUtils.utils.T3; import loadableUtils.utils.CompilerBot; import loadableUtils.utils.Swingable; import loadableUtils.utils.AbstractCompressor_AnyType; import loadableUtils.utils.EvalJavaPrep; import loadableUtils.utils.JavaXClassLoader; import loadableUtils.utils.Probabilistic; import loadableUtils.utils.Average; import loadableUtils.utils.JavaXClassLoaderWithParent; import loadableUtils.utils.IAutoCloseableF0; import loadableUtils.utils.Transformable; import loadableUtils.utils.UnsynchronizedCompactHashSet; import loadableUtils.utils.IJavaXExpr; import loadableUtils.utils.GrabbableIntPixels; import loadableUtils.utils.IIVirtualClip; import loadableUtils.utils.BWIntegralImage; import loadableUtils.utils.JE_CompressEachElementIndividually; import loadableUtils.utils.DoubleRange; import loadableUtils.utils.JavaXClassLoaderWithParent2; import loadableUtils.utils.CompressionRegime_AnyType; import loadableUtils.utils.Seconds; import loadableUtils.utils.Scored; import loadableUtils.utils.WithProbability;