ifndef OtherLoadableUtils lib 1033861 // Loadable Utils for Gazelle V (dev version) endifndef 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_mouseEvent; 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) { name = replacePrefix("loadableUtils.utils$", "main$", name); print("_onLoad_defaultClassFinder " + 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.l; set flag NoLFromX30. 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.printAlsoToSystemOut; 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.MultiMap; 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; please include class IJavaExpr. import loadableUtils.utils.WithSideValue; import loadableUtils.utils.IntegerIterator; import loadableUtils.utils.RightAlignedLine; import loadableUtils.utils.PingSource; import loadableUtils.utils.ThreadPool; 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; please include class 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; import static loadableUtils.utils.addPrefixOptIfNempty; import static loadableUtils.utils.year; import static loadableUtils.utils.withTimestamp; import static loadableUtils.utils.javaObjectToIJavaExpr; import static loadableUtils.utils.lambdaMethod0Like lambdaMapMethod; import static loadableUtils.utils.negativeInfinity; import static loadableUtils.utils.mainFunctionToF1; import static loadableUtils.utils.score; import static loadableUtils.utils.isThreadRunnable_x; import static loadableUtils.utils.asQuickException; import static loadableUtils.utils.stepAll; import static loadableUtils.utils.poorMansProfiling_stopAndPrintResults; import static loadableUtils.utils.isRunnableX; import static loadableUtils.utils.jreplaceExpandRefs; import static loadableUtils.utils.wrappedTextArea; import static loadableUtils.utils.infoMessage; import static loadableUtils.utils.brightnessToRGBA; import static loadableUtils.utils.withBorder; import static loadableUtils.utils.getPlural; import static loadableUtils.utils.hasLetters; import static loadableUtils.utils.sorted; import static loadableUtils.utils.loadFont_cached; import static loadableUtils.utils.standardCredentials_noCookies; import static loadableUtils.utils.mapMethodLike rcallOpt; import static loadableUtils.utils.hideConsole; import static loadableUtils.utils.quickSubstring; import static loadableUtils.utils.machineIsOffline; import static loadableUtils.utils.getClassDeclarationName_skippables; import static loadableUtils.utils.childrenOfType; import static loadableUtils.utils.dm_reloadModuleInBackground; import static loadableUtils.utils.poorMansProfiling_renderFullResults; import static loadableUtils.utils.unCurlyBracket; import static loadableUtils.utils.compileSnippetThroughServer; import static loadableUtils.utils.dropSpaceEtc; import static loadableUtils.utils.getVirtualParent; import static loadableUtils.utils.titlePopupMenu; import static loadableUtils.utils.isA; import static loadableUtils.utils.nanoTime; import static loadableUtils.utils.activateFrame_v3; import static loadableUtils.utils.programIDWithCase; import static loadableUtils.utils.vm_generalWeakSet; import static loadableUtils.utils.associatedInfosFile; import static loadableUtils.utils.addPrefix; import static loadableUtils.utils.isCurlyBraced; import static loadableUtils.utils.b; import static loadableUtils.utils.findCmdOnPATH; import static loadableUtils.utils.tempDirPossiblyInRAMDisk; import static loadableUtils.utils.javaxIncludeSnippetType; import static loadableUtils.utils.ewicOneOf; import static loadableUtils.utils.bottomRightCorner; import static loadableUtils.utils.doEvery_daemon; import static loadableUtils.utils.pClose; import static loadableUtils.utils.closeRandomAccessFile; import static loadableUtils.utils.jCenteredSection; import static loadableUtils.utils.makeComparator; import static loadableUtils.utils.manifestTextForMainClass; import static loadableUtils.utils.dm_fieldLabel; import static loadableUtils.utils.n; import static loadableUtils.utils.htmlencode_noQuotes; import static loadableUtils.utils.dm_window; import static loadableUtils.utils.ivf1WithToString; import static loadableUtils.utils.abs; import static loadableUtils.utils.forEachWithPosition; import static loadableUtils.utils.runnableThreadsWithStackTraces; import static loadableUtils.utils.scaledBufferedImageFromBWIntegralImage; import static loadableUtils.utils.winQuote; import static loadableUtils.utils.stdFunctions_uncached; import static loadableUtils.utils.isJavaxModuleSnippetType; import static loadableUtils.utils.findEndOfBracketPart; import static loadableUtils.utils.prepareProgramFile; import static loadableUtils.utils.rectEmpty; import static loadableUtils.utils.tok_returnTypesOfStaticFunction_uncleaned; import static loadableUtils.utils.intMatrixToImage; import static loadableUtils.utils.interruptThreads; import static loadableUtils.utils.hotwire_collectJars; import static loadableUtils.utils.callMain; import static loadableUtils.utils.eitherB; import static loadableUtils.utils.evalJava_prep; import static loadableUtils.utils.eitherA; import static loadableUtils.utils.markAsSrcLib; import static loadableUtils.utils.lIntArray; import static loadableUtils.utils.evalJava_myProgramID_main_2; import static loadableUtils.utils.addMouseAndMotionListener; import static loadableUtils.utils.containerAddFirst; import static loadableUtils.utils.caseInsensitiveComparator; import static loadableUtils.utils.dropExtension; import static loadableUtils.utils.asciiHeading2; import static loadableUtils.utils.getComponents; import static loadableUtils.utils.paramsToPairs; import static loadableUtils.utils.rep; import static loadableUtils.utils.area; import static loadableUtils.utils.add; import static loadableUtils.utils.singleComponentPanel; import static loadableUtils.utils.simpleDateFormat_local; import static loadableUtils.utils.withMargin; import static loadableUtils.utils.getCodeProgramDir; import static loadableUtils.utils.addActionListener; import static loadableUtils.utils.imageToMatrix; import static loadableUtils.utils.hashAboutObjects; import static loadableUtils.utils.hasMethod; import static loadableUtils.utils.clearTokens; import static loadableUtils.utils.enterKeyListener; import static loadableUtils.utils.poorMansProfiling_stopAndRenderResults; import static loadableUtils.utils.areaFromPoints; import static loadableUtils.utils.lambdaMapLike countIteratorToList; import static loadableUtils.utils.javaTokWithExisting; import static loadableUtils.utils.hotwire_compile; import static loadableUtils.utils.printStruct; import static loadableUtils.utils.containsOneOf; import static loadableUtils.utils.mapMethodLike dm_registerAs_direct; import static loadableUtils.utils.setFrameIconLater; import static loadableUtils.utils.intersectRects; import static loadableUtils.utils.loadCachedTranspilation; import static loadableUtils.utils.infoBoxesLogFile; import static loadableUtils.utils.addToCollection; import static loadableUtils.utils.dropFirstThreeAndLastThree; import static loadableUtils.utils.minusInfinity; import static loadableUtils.utils.deleteFile; import static loadableUtils.utils.listOfListsToMatrix; import static loadableUtils.utils.firstToken; import static loadableUtils.utils.centerAndSouthWithMargins; import static loadableUtils.utils.setSCPComponent; import static loadableUtils.utils.stopTimer; import static loadableUtils.utils.dm_os; import static loadableUtils.utils.hideWindow; import static loadableUtils.utils.cyclicGet; import static loadableUtils.utils.ymdMinusHMS; import static loadableUtils.utils.addSlash; import static loadableUtils.utils.toIntPercent; import static loadableUtils.utils.tok_classHasModifier; import static loadableUtils.utils.prependSquareBracketed; import static loadableUtils.utils.withLeftMargin; import static loadableUtils.utils.pingSource_tl; import static loadableUtils.utils.jSection; import static loadableUtils.utils.jPopDownButton_noText; import static loadableUtils.utils.simpleDateFormat; import static loadableUtils.utils.replaceElementsUsingMap; import static loadableUtils.utils.swingLater; import static loadableUtils.utils.tok_unCurlyBracket; import static loadableUtils.utils.copyListPart; import static loadableUtils.utils.makeNotifyingStringBufferRotate; import static loadableUtils.utils.matrixToList; import static loadableUtils.utils.mapObjectArray; import static loadableUtils.utils.defaultTimerName; import static loadableUtils.utils.currentImage; import static loadableUtils.utils.imageMergeSpacing; import static loadableUtils.utils._defaultClassFinder; import static loadableUtils.utils.boolOptParam; import static loadableUtils.utils.poorMansProfiling; import static loadableUtils.utils.getOptMC; import static loadableUtils.utils.setImage; import static loadableUtils.utils.isJavaIdentifier; import static loadableUtils.utils.regexp; import static loadableUtils.utils.bindTimerToComponent; import static loadableUtils.utils.integerIterator; import static loadableUtils.utils.containsRegexp; import static loadableUtils.utils.numLines; import static loadableUtils.utils.simpleQuote; import static loadableUtils.utils.indexOfAny; import static loadableUtils.utils.gridLOLToImage; import static loadableUtils.utils.html_valueLessParam; import static loadableUtils.utils.javaTokC_iterator; import static loadableUtils.utils.htmlQuote; import static loadableUtils.utils.alwaysOnTop; import static loadableUtils.utils.setFrameTitle; import static loadableUtils.utils._inCore; import static loadableUtils.utils.getScreenWidth; import static loadableUtils.utils.javaxVoidAliases; import static loadableUtils.utils.myClassLoader; import static loadableUtils.utils.tsNow; import static loadableUtils.utils.makeDependent; import static loadableUtils.utils.boundsOnScreen; import static loadableUtils.utils.jfind_preprocess; import static loadableUtils.utils.mapMethodLike formatFunctionCall; import static loadableUtils.utils.copyBufferedImage; import static loadableUtils.utils.dependentClasses; import static loadableUtils.utils.dm_evalJava_withModule; import static loadableUtils.utils.localDateWithSeconds; import static loadableUtils.utils.dm_reload; import static loadableUtils.utils.foldl; import static loadableUtils.utils.localSnippetTitle; import static loadableUtils.utils.localMonth; import static loadableUtils.utils.fileInSameDir; import static loadableUtils.utils.doubleBufferedImageSurface; import static loadableUtils.utils.getDBProgramID; import static loadableUtils.utils.mapMethodLike renderFunctionCall; import static loadableUtils.utils.addMargin; import static loadableUtils.utils.dm_getOSOpt; import static loadableUtils.utils.subDoubleArray; import static loadableUtils.utils.isJavaxCompilableSnippetTypeExceptInclude; import static loadableUtils.utils.setFrameIcon; import static loadableUtils.utils.dm_desktopPane; import static loadableUtils.utils.isListOfElementType; import static loadableUtils.utils.isIdentifier; import static loadableUtils.utils.getSnippetTitle; import static loadableUtils.utils.getTimeZone; import static loadableUtils.utils.jFullCenter; import static loadableUtils.utils.dm_calculatedLiveValue; import static loadableUtils.utils.leftClickMouseAdapter_noPt; import static loadableUtils.utils.getJavaModifiers; import static loadableUtils.utils.dm_setFlag; import static loadableUtils.utils.isEitherB; import static loadableUtils.utils.dm_currentModuleMandatory; import static loadableUtils.utils.quickEval; import static loadableUtils.utils.tempMetaMutex; import static loadableUtils.utils.mapMethodLike dm_fieldCheckBox; import static loadableUtils.utils.hasLettersAllUpperCase; import static loadableUtils.utils.jTextArea; import static loadableUtils.utils.classNamesInJarOrDir; import static loadableUtils.utils.toMinutes; import static loadableUtils.utils.mapMethodLike printShortenedFunctionCall; import static loadableUtils.utils.dm_reloadMe; import static loadableUtils.utils.iteratorFromFunction_withEndMarker_f0; import static loadableUtils.utils.lambda0Like dm_calculatedLabel; import static loadableUtils.utils.scanForComponents; import static loadableUtils.utils.scaffoldingEnabled; import static loadableUtils.utils.defaultJavaXTranslatorID; import static loadableUtils.utils.vmBus_queryAll; import static loadableUtils.utils.hotwire_libraryIDsFromJar; import static loadableUtils.utils.indent; import static loadableUtils.utils.isAlwaysOnTop; import static loadableUtils.utils.f0_const; import static loadableUtils.utils.infoBox; import static loadableUtils.utils.toSeconds; import static loadableUtils.utils.rect; import static loadableUtils.utils.navigableSet_find; import static loadableUtils.utils.tempCleaningUp; import static loadableUtils.utils.cleanUp; import static loadableUtils.utils.dm_stem; import static loadableUtils.utils.defaultDefaultClassFinder; import static loadableUtils.utils.countIterator_exclusive_step; import static loadableUtils.utils.cleanUpAndGetWeakReferencesList; import static loadableUtils.utils.forEach; import static loadableUtils.utils.standardFunctionAlwaysReturnsVoid_uncached; import static loadableUtils.utils.findEndOfBlock; import static loadableUtils.utils.disposeWindow; import static loadableUtils.utils.textFieldFromComboBox; import static loadableUtils.utils.logQuotedWithTime; import static loadableUtils.utils.isInRAMDisk; import static loadableUtils.utils.muricaCredentialsQuery; import static loadableUtils.utils.getScore; import static loadableUtils.utils.formatColonProperties_noNulls; import static loadableUtils.utils.containsNewLines; import static loadableUtils.utils.moveToTopRightCorner; import static loadableUtils.utils.objectArraysEqual; import static loadableUtils.utils.stdcompare; import static loadableUtils.utils.centerAndEast; import static loadableUtils.utils.aGlobalID; import static loadableUtils.utils.preferredWidth; import static loadableUtils.utils.metaMapPut; import static loadableUtils.utils.quoteBorderless; import static loadableUtils.utils.eqGetOneOf; import static loadableUtils.utils.makeFrame; import static loadableUtils.utils.okOrError; import static loadableUtils.utils.setDoubleBuffered; import static loadableUtils.utils.asVirtualList; import static loadableUtils.utils.bufferedImage; import static loadableUtils.utils.asciiHeading; import static loadableUtils.utils.mapToObjectArray; import static loadableUtils.utils.synchroWeakHashSet; import static loadableUtils.utils.maximumSafeArraySize; import static loadableUtils.utils.replaceListPart; import static loadableUtils.utils.dm_q; import static loadableUtils.utils.tempActivity; import static loadableUtils.utils.javaTokForJFind_array; import static loadableUtils.utils.withLeftAndRightMargin; import static loadableUtils.utils.preCleanUp; import static loadableUtils.utils.dropFirstAndLast; import static loadableUtils.utils.getAndClearTL; import static loadableUtils.utils.getClassDeclarationName; import static loadableUtils.utils.dm_registerAs_directLink; import static loadableUtils.utils.addPrefixIfNempty; import static loadableUtils.utils.dm_doEvery; import static loadableUtils.utils.platformQuoteOpt; import static loadableUtils.utils.gridOfRects3; import static loadableUtils.utils.mergeBufferedImagesHorizontally; import static loadableUtils.utils.enumerationToIterator; import static loadableUtils.utils.allPaused; import static loadableUtils.utils.partialSums_firstIs0; import static loadableUtils.utils.params_unpackList; import static loadableUtils.utils.pcallOpt; import static loadableUtils.utils.childOfType; import static loadableUtils.utils.isMac; import static loadableUtils.utils.dm_centeredCalculatedLabel; import static loadableUtils.utils.shortName; import static loadableUtils.utils.copyStreamAndCloseAll; import static loadableUtils.utils.md5OfFile; import static loadableUtils.utils.hgrid; import static loadableUtils.utils.ai_splitCamelCase; import static loadableUtils.utils.containsLowerCase; import static loadableUtils.utils.findTranslators2; import static loadableUtils.utils.getFieldType; import static loadableUtils.utils.screenshot; import static loadableUtils.utils.decimalFormatEnglish; import static loadableUtils.utils.dm_current; import static loadableUtils.utils.getMainBot; import static loadableUtils.utils.ping_v3; import static loadableUtils.utils.standardLogFile; import static loadableUtils.utils.emptyIterableIterator; import static loadableUtils.utils.toJavaOpt; import static loadableUtils.utils.findBlock; import static loadableUtils.utils.showLoadingAnimation; import static loadableUtils.utils.mapLevelTwo; import static loadableUtils.utils.hexToInts_dropSpaces; import static loadableUtils.utils.flattenArray2; import static loadableUtils.utils.evalJava_prePrep; import static loadableUtils.utils.formatDouble; import static loadableUtils.utils.getParent; import static loadableUtils.utils.strOrEmpty; import static loadableUtils.utils.dir2zip_recurse; import static loadableUtils.utils.defaultNewFrameBounds; import static loadableUtils.utils.hexToBytes_dropSpaces; import static loadableUtils.utils.pqO; import static loadableUtils.utils.jLiveValueSection; import static loadableUtils.utils.javaTokC_producer; import static loadableUtils.utils.OKOrError_ok; import static loadableUtils.utils.toCaseInsensitiveSet_treeSet; import static loadableUtils.utils.toStringWithClassName; import static loadableUtils.utils.linux_fileInRamDisk; import static loadableUtils.utils.javaExpr; import static loadableUtils.utils.shorten_str; import static loadableUtils.utils.hotwire_finish; import static loadableUtils.utils.topLeftCorner; import static loadableUtils.utils.platformQuote; import static loadableUtils.utils.indexOfSubList; import static loadableUtils.utils.run; import static loadableUtils.utils.allClasses; import static loadableUtils.utils.getServerTranspiled; import static loadableUtils.utils.nonNullPairs; import static loadableUtils.utils.grabbableGrayPixels; import static loadableUtils.utils.indexAsSideValue; import static loadableUtils.utils.replaceExtension; import static loadableUtils.utils.structure_addTokenMarkers; import static loadableUtils.utils.findFullFunctionDefs; import static loadableUtils.utils.makeFileNameUnique_withExtension; import static loadableUtils.utils.has; import static loadableUtils.utils.OKOrError_error; import static loadableUtils.utils.last; import static loadableUtils.utils.caseInsensitiveSet; import static loadableUtils.utils.checkCondition; import static loadableUtils.utils.intsToHex; import static loadableUtils.utils.intSum; import static loadableUtils.utils.formatDouble_noLeadingZero; import static loadableUtils.utils.takeFirstOfByteArray; import static loadableUtils.utils.filesWithExtension; import static loadableUtils.utils.warn; import static loadableUtils.utils.getMultipleKeys; import static loadableUtils.utils.dm_moduleIsPoppedOut; import static loadableUtils.utils.actualUserDir; import static loadableUtils.utils.beautifyStructure; import static loadableUtils.utils.distance; import static loadableUtils.utils.jrightAlignedLine; import static loadableUtils.utils.toRect; import static loadableUtils.utils.synchroSet; import static loadableUtils.utils.formatDouble_significant2; import static loadableUtils.utils.callJavaX; import static loadableUtils.utils.assertPointInBounds; import static loadableUtils.utils.isJavaxCompilableSnippetType; import static loadableUtils.utils.installWindowDragger; import static loadableUtils.utils.onLeftClick; import static loadableUtils.utils.addIfNotNull; import static loadableUtils.utils.localTimeZone; import static loadableUtils.utils.smartTimerTask; import static loadableUtils.utils.isString; import static loadableUtils.utils.installTimer; import static loadableUtils.utils.setAdd; import static loadableUtils.utils.jeCompressionSearch; import static loadableUtils.utils.syncMapPutOrRemove; import static loadableUtils.utils.clipBufferedImage; import static loadableUtils.utils.temp_loadPage_silent; import static loadableUtils.utils.lInts; import static loadableUtils.utils.veryQuickJava3; import static loadableUtils.utils.jCompoundBorder; import static loadableUtils.utils.afterLastSpace; import static loadableUtils.utils.dm_reloadModule; import static loadableUtils.utils.registeredThreads; import static loadableUtils.utils.htmlencode_forParams; import static loadableUtils.utils.formatDouble1; import static loadableUtils.utils.methodForEach; import static loadableUtils.utils.tempDir; import static loadableUtils.utils.centerAndNorth; import static loadableUtils.utils.setText; import static loadableUtils.utils.intToHex; import static loadableUtils.utils.vmBus_timerStarted; import static loadableUtils.utils.jlabel_textAsHTML_center; import static loadableUtils.utils.findBeginningOfBlock; import static loadableUtils.utils.litciset; import static loadableUtils.utils.findButton; import static loadableUtils.utils.splitAtSpace; import static loadableUtils.utils.getCanonicalFile; import static loadableUtils.utils.htmlQuery; import static loadableUtils.utils.parseIntOrLong; import static loadableUtils.utils.leftClickMouseAdapter; import static loadableUtils.utils.toJava; import static loadableUtils.utils.getBounds; import static loadableUtils.utils.northAndCenterWithMargin; import static loadableUtils.utils.printIndent; import static loadableUtils.utils.getAndClearList; import static loadableUtils.utils.loadTextFileResource; import static loadableUtils.utils.leftScanModifiers; import static loadableUtils.utils.renderUserThreadsWithStackTraces; import static loadableUtils.utils.nBytes; import static loadableUtils.utils.loadTextFilePossiblyGZipped; import static loadableUtils.utils.newConceptsWithClassFinder; import static loadableUtils.utils.getSwingFontScale; import static loadableUtils.utils.addPrefixIfNotEmpty2; import static loadableUtils.utils.snippetType_javaxDesktopModule; import static loadableUtils.utils.substanceLookAndFeelEnabled; import static loadableUtils.utils.replaceSublist; import static loadableUtils.utils.selectedItem; import static loadableUtils.utils.codeTokensOnly; import static loadableUtils.utils.standardCredentialsUser; import static loadableUtils.utils.matrixToIntArray; import static loadableUtils.utils.printTo; import static loadableUtils.utils.appendToFileNameBeforeExtension; import static loadableUtils.utils.functionToF1; import static loadableUtils.utils.isSpaceEtc; import static loadableUtils.utils.fixTimestamp; import static loadableUtils.utils.isNormalQuoted; import static loadableUtils.utils.joinSubList; import static loadableUtils.utils.isMultilineQuoted; import static loadableUtils.utils.loadingAnim; import static loadableUtils.utils.saveGZTextFile; import static loadableUtils.utils.getAWTFrame; import static loadableUtils.utils.defaultScreenshot; import static loadableUtils.utils.setVar_trueIfChanged; import static loadableUtils.utils.nEntries; import static loadableUtils.utils.hexToInts; import static loadableUtils.utils.syncMapPut2; import static loadableUtils.utils.mapToPairs; import static loadableUtils.utils.isJavaxApplicationSnippetType; import static loadableUtils.utils.javaTokC; import static loadableUtils.utils.onSelectedItem; import static loadableUtils.utils.askTripleBool; import static loadableUtils.utils.dm_ownResource; import static loadableUtils.utils.ratioToIntPercent; import static loadableUtils.utils.loadPNG; import static loadableUtils.utils.jreplace; import static loadableUtils.utils.tempRememberListener; import static loadableUtils.utils.muricaCredentials; import static loadableUtils.utils.newButton; import static loadableUtils.utils.smartJoin; import static loadableUtils.utils.treeSet; import static loadableUtils.utils.onUpdate; import static loadableUtils.utils.snippetTitle_cacheFile; import static loadableUtils.utils.formatInt; import static loadableUtils.utils.hotwire_copyOver; import static loadableUtils.utils.flattenIterablesAndArrays; import static loadableUtils.utils.intMax; import static loadableUtils.utils.addAndReturnCollection; import static loadableUtils.utils.activateFrame; import static loadableUtils.utils.awtLater; import static loadableUtils.utils.replace; import static loadableUtils.utils.mapMethodLike functionCall_list; import static loadableUtils.utils.assertVerbose; import static loadableUtils.utils.getOneLineFileInfoField; import static loadableUtils.utils.profileToConsole; import static loadableUtils.utils.neqOneOf; import static loadableUtils.utils.myLibraryFiles; import static loadableUtils.utils.dm_javaEval; import static loadableUtils.utils.nChars; import static loadableUtils.utils.findCodeTokens; import static loadableUtils.utils.withTypeWriterFont; import static loadableUtils.utils.dropTranslators; import static loadableUtils.utils.printWithMS; import static loadableUtils.utils.tokAppend; import static loadableUtils.utils.lambdaMethodMap; import static loadableUtils.utils.matrixToImage; import static loadableUtils.utils.setSplitPaneOnFirstShowing; import static loadableUtils.utils.mapMethodLike vmBus_noObjections; import static loadableUtils.utils.format; import static loadableUtils.utils.vmGeneralMap_get; import static loadableUtils.utils.heightForWidth; import static loadableUtils.utils.strUnnull; import static loadableUtils.utils.isSymLink; import static loadableUtils.utils.get2; import static loadableUtils.utils.eitherAOpt; import static loadableUtils.utils.onEnter; import static loadableUtils.utils.vmBus_anyFalse; import static loadableUtils.utils.localSnippetsDir; import static loadableUtils.utils.listToMatrix; import static loadableUtils.utils.hsplit; //import static loadableUtils.utils.mcDollar; import static loadableUtils.utils.changeListener; import static loadableUtils.utils.screenRectangle; import static loadableUtils.utils.mapWithIndex; import static loadableUtils.utils.set_trueIfChanged; import static loadableUtils.utils.containsNewLine; import static loadableUtils.utils.copyStreamAndCloseInput; import static loadableUtils.utils.centerAndEastWithMargin; import static loadableUtils.utils.retireClassLoader; import static loadableUtils.utils.getFrame; import static loadableUtils.utils.dm_evalInQ; import static loadableUtils.utils.countIterator_exclusive; import static loadableUtils.utils.centerAndSouth; import static loadableUtils.utils.jscroll_center; import static loadableUtils.utils.jhsplit; import static loadableUtils.utils.mapMethodLike dm_fieldLiveValue; import static loadableUtils.utils.isLetter; import static loadableUtils.utils.elapsedMinutes_timestamp; import static loadableUtils.utils.toggleAlwaysOnTop; import static loadableUtils.utils.percentRatioStrOneDigit; import static loadableUtils.utils.ymd; import static loadableUtils.utils.veryQuickJava_finish; import static loadableUtils.utils.findAllFiles_noDirs; import static loadableUtils.utils.toObjectArray; import static loadableUtils.utils.nanoSecondsToSeconds; import static loadableUtils.utils.getScreenSize; //import static loadableUtils.utils.imageSurface; import static loadableUtils.utils.rectFromPoints; import static loadableUtils.utils.runnableThread; import static loadableUtils.utils.addPrefixIfNotEmpty; import static loadableUtils.utils.toolTip; import static loadableUtils.utils.getLine; import static loadableUtils.utils.hotwireOnce; import static loadableUtils.utils.fromUtf8; import static loadableUtils.utils.firstToUpper; import static loadableUtils.utils.allScreenBounds; import static loadableUtils.utils.standardCredentialsPass; import static loadableUtils.utils.rangeCheck; import static loadableUtils.utils.compilerBotDestDirSubName; import static loadableUtils.utils.findClass_fullName; import static loadableUtils.utils.rCallOnSelectedListItem; import static loadableUtils.utils.withBottomMargin; import static loadableUtils.utils.typeWriterFont; import static loadableUtils.utils.hotwireDependent; import static loadableUtils.utils.javaCompile_overInternalBot; import static loadableUtils.utils.tempLoadingAnim; import static loadableUtils.utils.removeMouseAdapter; import static loadableUtils.utils.disposeWindowAfter; import static loadableUtils.utils.indexOfNonDigit; import static loadableUtils.utils.tok_combineCurlyBrackets_keep; import static loadableUtils.utils.hms; import static loadableUtils.utils.mapTwoLevelsDown; import static loadableUtils.utils.copyLocalLog; import static loadableUtils.utils.compareWithComparator; import static loadableUtils.utils.tok_findEndOfMethodDecl; import static loadableUtils.utils.jscroll_centered; import static loadableUtils.utils.complex; import static loadableUtils.utils.hotwireCached; import static loadableUtils.utils.isWindows; import static loadableUtils.utils.rectArea; import static loadableUtils.utils.bashQuote; import static loadableUtils.utils.tok_firstClassName; import static loadableUtils.utils.parentFile; import static loadableUtils.utils.intToBytes_inArray_littleEndian; import static loadableUtils.utils.dropSuffixIC; import static loadableUtils.utils.roundToInt; import static loadableUtils.utils.evalInQ; import static loadableUtils.utils.regexpExtractAll; import static loadableUtils.utils.vmBus_addListener_basic; import static loadableUtils.utils.cloneListSynchronizingOn; import static loadableUtils.utils.synchroLinkedHashMap; import static loadableUtils.utils.showInTopRightCorner; import static loadableUtils.utils.intListToByteArray_littleEndian; import static loadableUtils.utils.listSet; import static loadableUtils.utils.getTitlePaneComponent; import static loadableUtils.utils.deleteDirectory; import static loadableUtils.utils.poorMansProfiling_defaultInterval; import static loadableUtils.utils.cancelTimers; import static loadableUtils.utils.screenWidth; import static loadableUtils.utils.hfulltag; import static loadableUtils.utils.takeFirstOfDoubleArray; import static loadableUtils.utils.showConsole; import static loadableUtils.utils.splitAt; import static loadableUtils.utils.dropSuffixIgnoreCase; import static loadableUtils.utils.isLowerCase; import static loadableUtils.utils.getInternalFrameTitlePaneComponent; import static loadableUtils.utils.toRect_floor; import static loadableUtils.utils.toF1; import static loadableUtils.utils.htmlencode2; import static loadableUtils.utils.subIntArray; import static loadableUtils.utils.endMarker; import static loadableUtils.utils.onFirstResize; import static loadableUtils.utils.duplicateThisProgram; import static loadableUtils.utils.gazelle_wavySpacer; import static loadableUtils.utils.getCanonicalPath; import static loadableUtils.utils.iteratorFromFunction_withEndMarker; import static loadableUtils.utils.appendSlash; import static loadableUtils.utils.callOnLoadMethods; import static loadableUtils.utils.dm_rEnter; import static loadableUtils.utils.reTok; import static loadableUtils.utils.isOneOfSingleChars; import static loadableUtils.utils.startsWithAny; import static loadableUtils.utils.getServerTranspiled2; import static loadableUtils.utils.loadLibraryOrSrcLib; import static loadableUtils.utils.fullAlphaMask; import static loadableUtils.utils.findMainClass; import static loadableUtils.utils.toString; import static loadableUtils.utils.callCalc; import static loadableUtils.utils.saveTranspiledCode; import static loadableUtils.utils.matrixToMNGrid; import static loadableUtils.utils.colToList; import static loadableUtils.utils.mapI_if1; import static loadableUtils.utils.showAnimationInTopRightCorner; import static loadableUtils.utils.div; import static loadableUtils.utils.addComponentsFirst; import static loadableUtils.utils.squareBracket; import static loadableUtils.utils.makeFileNameUnique_beforeExtension; import static loadableUtils.utils.stepAllWithTimeout; import static loadableUtils.utils.isQuoted; import static loadableUtils.utils.tok_isJavaxMetaCommandLeftOf; import static loadableUtils.utils.getProgramTitle; import static loadableUtils.utils.checkTokCondition; import static loadableUtils.utils.fixACCInClassLoader; import static loadableUtils.utils.formatLocalDateWithSeconds; import static loadableUtils.utils.isLocalSnippetID; import static loadableUtils.utils.applyDefaultMargin; import static loadableUtils.utils.removeFromParent; import static loadableUtils.utils.month; import static loadableUtils.utils.containsSpaces; import static loadableUtils.utils.renameFile; import static loadableUtils.utils.isDigit; import static loadableUtils.utils.flexLines; import static loadableUtils.utils.eitherIsA; import static loadableUtils.utils.unrollParams; import static loadableUtils.utils.eitherIsB; import static loadableUtils.utils.mapQuickEval_javaExpr; import static loadableUtils.utils.dm_callOS; import static loadableUtils.utils.tok_addReturn; import static loadableUtils.utils.loadTextFileFromZip; import static loadableUtils.utils.setOptIfNotNull; import static loadableUtils.utils.dm_current_generic_mandatory; import static loadableUtils.utils.regionMatches; import static loadableUtils.utils.naiveQuote; import static loadableUtils.utils.warnIfOddCount; import static loadableUtils.utils.snippetType_javaxModule; import static loadableUtils.utils.logQuoted; import static loadableUtils.utils.withSideValue; import static loadableUtils.utils.newRandomAccessFile; import static loadableUtils.utils.grabbableIntPixels; import static loadableUtils.utils.doublePercentRatio; import static loadableUtils.utils.synchronizedMRUCache; import static loadableUtils.utils.loadLibraries; import static loadableUtils.utils.logQuotedWithDate; import static loadableUtils.utils.asObjectArray; import static loadableUtils.utils.printFileInfo; import static loadableUtils.utils.dm_getVisualization; import static loadableUtils.utils.padLeft; import static loadableUtils.utils.snippetType_javaxSource; import static loadableUtils.utils.dm_callOSOpt; import static loadableUtils.utils.interruptThread; import static loadableUtils.utils.bindLiveValueListenerToComponent; import static loadableUtils.utils.setOptAll; import static loadableUtils.utils.screenHeight; import static loadableUtils.utils.getPreferredWidth; import static loadableUtils.utils.isOfflineMode; import static loadableUtils.utils.screenBounds; import static loadableUtils.utils.myFrames; import static loadableUtils.utils.callStringifier; import static loadableUtils.utils.metaSet; import static loadableUtils.utils.mapMethodLike calculateLengthOfFunctionCall; import static loadableUtils.utils.loadSnippetSilently; import static loadableUtils.utils.touchFile; import static loadableUtils.utils.paramsWithout; import static loadableUtils.utils.toRectangle; import static loadableUtils.utils.allMethodNames; import static loadableUtils.utils.saveTextFileIfChanged; import static loadableUtils.utils.printStackTrace2; import static loadableUtils.utils.consoleFrame; import static loadableUtils.utils.jeCompressionRegime; import static loadableUtils.utils.widthForHeight; import static loadableUtils.utils.hotwireCore; import static loadableUtils.utils.returnOrThrow_either; import static loadableUtils.utils.tok_findEndOfBlock; import static loadableUtils.utils.centerLabel; import static loadableUtils.utils.nohup_sanitize; import static loadableUtils.utils.javaxCodeDir; import static loadableUtils.utils.imageFromHex; import static loadableUtils.utils.jLiveValueLabel; import static loadableUtils.utils.tempSet; import static loadableUtils.utils.combineAutoCloseables; import static loadableUtils.utils.systemHashCodeHex; import static loadableUtils.utils.shortClassName_dropNumberPrefix; import static loadableUtils.utils.findEndOfCurlyBracketPart; import static loadableUtils.utils.identityHashCode; import static loadableUtils.utils.minimizeWindow; import static loadableUtils.utils.allClassNamesOnPath; import static loadableUtils.utils.sqrt; import static loadableUtils.utils.listFilesWithSuffix; import static loadableUtils.utils.closeAllWriters; import static loadableUtils.utils.globalIDLength; import static loadableUtils.utils.isSubstanceLAF; import static loadableUtils.utils.localSnippetFile; import static loadableUtils.utils.standardTimeZone; import static loadableUtils.utils.appendToFileBaseName; import static loadableUtils.utils.synchroLinkedHashSet; import static loadableUtils.utils.jbutton; import static loadableUtils.utils.jtextarea; import static loadableUtils.utils.listToMatrix_cols; import static loadableUtils.utils.addDyn; import static loadableUtils.utils.setEnabled; import static loadableUtils.utils.mapMethodLike functionCall; import static loadableUtils.utils.isInstanceOf; import static loadableUtils.utils.charToString; import static loadableUtils.utils.isMarkedAsSrcLib; import static loadableUtils.utils.intListToByteArray; import static loadableUtils.utils.timerTask; import static loadableUtils.utils.getFileInfoField; import static loadableUtils.utils.javaTokForStructure; import static loadableUtils.utils.isCISet; import static loadableUtils.utils.northAndCenter; import static loadableUtils.utils.matrixToMNGrid_rows; import static loadableUtils.utils.jline; import static loadableUtils.utils.itemListener; import static loadableUtils.utils.toMS; import static loadableUtils.utils.dm_pointSubmoduleToMe; import static loadableUtils.utils.cancelTimer; import static loadableUtils.utils.isLongConstant; import static loadableUtils.utils.bwIntegralImage_sumRect; import static loadableUtils.utils.endsWithLetter; import static loadableUtils.utils.intFromBytes_littleEndian_partial; import static loadableUtils.utils.containsSpace; import static loadableUtils.utils.creator; import static loadableUtils.utils.hotwireSharingLibraries; import static loadableUtils.utils.htmlencode_forParams_v2; import static loadableUtils.utils.forward; import static loadableUtils.utils.mapMethodLike vmBus_query; import static loadableUtils.utils.change; import static loadableUtils.utils.quoteIfNotIdentifierOrInteger; import static loadableUtils.utils.assertEquals; import static loadableUtils.utils.joinMap; import static loadableUtils.utils.isJAR; import static loadableUtils.utils.clearAllTokens; import static loadableUtils.utils.programTitle; import static loadableUtils.utils.withProbability; import static loadableUtils.utils.toPath; import static loadableUtils.utils.jTextAreaWithUndo; import static loadableUtils.utils.getPreferredSize; import static loadableUtils.utils.takeFirstOfIntArray; import static loadableUtils.utils.unicode_downPointingTriangle; import static loadableUtils.utils.dm_windowIfSingleModule; import static loadableUtils.utils.backtick; import static loadableUtils.utils.textOfStandardFunction_uncached; import static loadableUtils.utils.jLiveValueCheckBox; import static loadableUtils.utils.md5; import static loadableUtils.utils.getBorder; import static loadableUtils.utils.onClick; import static loadableUtils.utils.screenDevices; import static loadableUtils.utils.isAllUpperCase; import static loadableUtils.utils.getLookAndFeel; import static loadableUtils.utils.rowToList; import static loadableUtils.utils.allElementsAreOfType; import static loadableUtils.utils.containsUnsafePlatformCmdLineChar; import static loadableUtils.utils.renderFileInfo; import static loadableUtils.utils.jCheckBoxMenuItem; import static loadableUtils.utils.mapPut_returnValue; import static loadableUtils.utils.appendToFile; import static loadableUtils.utils.find; import static loadableUtils.utils.jenableUndoRedo; import static loadableUtils.utils.setChecked; import static loadableUtils.utils.joinPairWithColon; import static loadableUtils.utils.quoteUnlessIdentifierOrInteger; import static loadableUtils.utils.setFont; import static loadableUtils.utils.syncList; import static loadableUtils.utils.takeFirst; import static loadableUtils.utils.isEditableComboBox; import static loadableUtils.utils.jrightalignedline; import static loadableUtils.utils.formatColonProperties; import static loadableUtils.utils.numberOfCores; import static loadableUtils.utils.cleanJavaCompilerOutput; import static loadableUtils.utils.showWindow; import static loadableUtils.utils.plus; import static loadableUtils.utils.optPar_ignoreOddLength; import static loadableUtils.utils.tok_findEndOfMethodHeader; import static loadableUtils.utils.filterMap; import static loadableUtils.utils.saveTextFileIfDifferent; import static loadableUtils.utils._registerTimer; import static loadableUtils.utils.mapMethodLike dm_watchField; import static loadableUtils.utils.fillJPopupMenu; import static loadableUtils.utils.hotwire_makeClassLoader; import static loadableUtils.utils.codeTokensAsStringArray; import static loadableUtils.utils.ifloor; import static loadableUtils.utils.tok_isStaticLevelCode; import static loadableUtils.utils.isUpperCaseLetter; import static loadableUtils.utils.hmsWithColonsAndMS; import static loadableUtils.utils.blend; import static loadableUtils.utils.scpSet; import static loadableUtils.utils.enableWordWrapForTextArea; import static loadableUtils.utils.isSystemThread; import static loadableUtils.utils.smartIndexOf; import static loadableUtils.utils.tokAppend_reTok; import static loadableUtils.utils.dm_calculatedCenteredLabel; import static loadableUtils.utils.printHidingCredentials; import static loadableUtils.utils.sqr; import static loadableUtils.utils.repeat; import static loadableUtils.utils.childWithClassNameEndingWith; import static loadableUtils.utils.stepMax; import static loadableUtils.utils.structureForUser; import static loadableUtils.utils.ok; import static loadableUtils.utils.mapMinus; import static loadableUtils.utils.firstCodeToken; import static loadableUtils.utils.nohup; import static loadableUtils.utils.pointsRect; import static loadableUtils.utils.jCheckBox; import static loadableUtils.utils.poorMansProfileToConsole; import static loadableUtils.utils.toMS_int; import static loadableUtils.utils.jlabel_textAsHTML_center_ifNeeded; import static loadableUtils.utils.hotwire_libraryIDsFromJar_deleteJarOnFail; import static loadableUtils.utils.runnableToIF0; import static loadableUtils.utils.rectTopLeftCorner; import static loadableUtils.utils.scored; import static loadableUtils.utils.makeTempDir; import static loadableUtils.utils.onWindowClosing; import static loadableUtils.utils.filesEndingWith; import static loadableUtils.utils.manifestPathInJar; import static loadableUtils.utils.htag; import static loadableUtils.utils.asArray; import static loadableUtils.utils.pt; import static loadableUtils.utils.mapMethod; import static loadableUtils.utils.showText; import static loadableUtils.utils.convertObjectMetaToMap; import static loadableUtils.utils.repSimple; import static loadableUtils.utils.neqic; import static loadableUtils.utils.infoMessage_makePanel; import static loadableUtils.utils.setDefaultClassFinder; import static loadableUtils.utils.countLines; import static loadableUtils.utils.isCurlyBracketed; import static loadableUtils.utils.intsToHex_withLineBreaks; //import static loadableUtils.utils.doubleBufferedImageSurface_noAlpha; import static loadableUtils.utils.snippetType_dynModule; import static loadableUtils.utils.dm_vmBus_answerToMessage; import static loadableUtils.utils.getOrKeep; import static loadableUtils.utils.toByteList; import static loadableUtils.utils.afterDollar; import static loadableUtils.utils.filterChars; import static loadableUtils.utils.firstStartingWithIC_drop; import static loadableUtils.utils.costCenter; import static loadableUtils.utils.getBytecodePathForClass; import static loadableUtils.utils.smartAdd; import static loadableUtils.utils.replaceCollection; import static loadableUtils.utils.gazelle_color2; import static loadableUtils.utils.transpileRaw; import static loadableUtils.utils.rCallF; import static loadableUtils.utils.standardCredentials; import static loadableUtils.utils.installWindowResizeDraggerOnBorder; import static loadableUtils.utils.linesLL; import static loadableUtils.utils.dayOfMonth; import static loadableUtils.utils.safeGet; import static loadableUtils.utils.clearTokens_reTok; import static loadableUtils.utils.sortedSet_compare; import static loadableUtils.utils.stepForNSeconds; import static loadableUtils.utils.singular; import static loadableUtils.utils.javaCompileToJar_optionalRename; import static loadableUtils.utils.getCachedTranspilationFile; import static loadableUtils.utils._initFrame; import static loadableUtils.utils.minus; import static loadableUtils.utils.printWithIndent; import static loadableUtils.utils.hasElementWithClassShortNamed; import static loadableUtils.utils.syncAddOrCreate; import static loadableUtils.utils.tokPrepend; import static loadableUtils.utils.keysList; import static loadableUtils.utils.containsReturnWithArgument; import static loadableUtils.utils.fileNameEncode; import static loadableUtils.utils.tempHoldInstance; import static loadableUtils.utils.getSnippetTitleOpt; import static loadableUtils.utils.reversedList; import static loadableUtils.utils.intRange; import static loadableUtils.utils.localYear; import static loadableUtils.utils.getScreenHeight; import static loadableUtils.utils.byteArrayToIntList_littleEndian; import static loadableUtils.utils.dm_ownTimer; import static loadableUtils.utils.ratio; import static loadableUtils.utils.countIterator; import static loadableUtils.utils.makePopupMenu; import static loadableUtils.utils.methodsStartingWith; import static loadableUtils.utils.subShortArray; import static loadableUtils.utils.mapMethodLike boolPar; import static loadableUtils.utils.isNaN; import static loadableUtils.utils.fillRect; import static loadableUtils.utils.resizeIntArray; import static loadableUtils.utils.westCenterAndEastWithMargin; import static loadableUtils.utils.lookupDynamicInterface; import static loadableUtils.utils.indentx; import static loadableUtils.utils.getSelectedItem; import static loadableUtils.utils.elapsedSeconds_timestamp; import static loadableUtils.utils.startsWithAndEndsWith; import static loadableUtils.utils.loadAllClassesInByteCodePath; import static loadableUtils.utils.activateFrameAndReturnComponent; import static loadableUtils.utils.takeFirstOfShortArray; import static loadableUtils.utils.tok_shouldAddReturn; import static loadableUtils.utils.mapMethodLike dm_centeredFieldLabel; import static loadableUtils.utils.ymd_minus_hms; import static loadableUtils.utils.isChecked; import static loadableUtils.utils.jPopDownButton; import static loadableUtils.utils.innerCleanUp; import static loadableUtils.utils.similarEmptyMap; import static loadableUtils.utils.getMC; import static loadableUtils.utils.toFile; import static loadableUtils.utils.gunzipBytes; import static loadableUtils.utils.intArrayToList; import static loadableUtils.utils.drop; import static loadableUtils.utils.snippetType_JavaXDesktop; import static loadableUtils.utils.intToBytes_inArray_littleEndian_partial; import static loadableUtils.utils.compilerBotDestDir; import static loadableUtils.utils.metaMapGet; import static loadableUtils.utils.eqGet; import static loadableUtils.utils.standardTitlePopupMenu; import static loadableUtils.utils.tempAdd; import static loadableUtils.utils.loadProgramTextFile; import static loadableUtils.utils.mcName; import static loadableUtils.utils.onMouseDown; import static loadableUtils.utils.tempDisposeWindow; import static loadableUtils.utils.isLinux; import static loadableUtils.utils.checkFields; import static loadableUtils.utils.localDayOfMonth; import static loadableUtils.utils.iff; import static loadableUtils.utils.makeWindow; import static loadableUtils.utils.pixelCount; import static loadableUtils.utils.if0ToF0; import static loadableUtils.utils.pairA; import static loadableUtils.utils.autoVMExit; import static loadableUtils.utils.appendToBaseName; import static loadableUtils.utils.javaTok_noMLS; import static loadableUtils.utils.dropFirst; import static loadableUtils.utils._handleException; import static loadableUtils.utils.newWeakHashSet; import static loadableUtils.utils.waitForVarToBeNotNull; import static loadableUtils.utils.nClasses; import static loadableUtils.utils.struct_noStringSharing; import static loadableUtils.utils.mod; import static loadableUtils.utils.javaTok_substringC; import static loadableUtils.utils.lookupInterface; import static loadableUtils.utils.inputStreamToString; import static loadableUtils.utils.javaTok_substringN; import static loadableUtils.utils.squareBracketed; import static loadableUtils.utils.makeUndecoratedFrame; import static loadableUtils.utils.centerAndEastWithMarginInbetween; import static loadableUtils.utils.seconds; import static loadableUtils.utils.regexpFinds; import static loadableUtils.utils.isLocalSnippet; import static loadableUtils.utils.getStackTrace2; import static loadableUtils.utils.useDummyMainClasses; import static loadableUtils.utils.longIsInt; import static loadableUtils.utils.subByteArray; import static loadableUtils.utils.pcallFAll_returnFirstNotNull; import static loadableUtils.utils.quickFail; import static loadableUtils.utils.isJavaXClassLoader; import static loadableUtils.utils.findClass; import static loadableUtils.utils.nanosToSeconds; import static loadableUtils.utils.anyFileWithExtensionInDir; import static loadableUtils.utils.readerToString; import static loadableUtils.utils.drawIntMatrix; import static loadableUtils.utils.dm_toggleAlwaysOnTop; import static loadableUtils.utils.joinNemptiesWithDot; import static loadableUtils.utils.humanizeFormLabel; import static loadableUtils.utils.doLater_daemon; import static loadableUtils.utils.hotwire_classesToShare; import static loadableUtils.utils.grabbableIntPixels_fastOrSlow; import static loadableUtils.utils.countPred; import static loadableUtils.utils.scaleDownUsingIntegralImageBW; import static loadableUtils.utils.addSuffix; import static loadableUtils.utils.augmentException; import static loadableUtils.utils.dummyMainClassName; import static loadableUtils.utils.printExceptionShort; import static loadableUtils.utils.printWithMSTime; import static loadableUtils.utils.close_pcall; import static loadableUtils.utils.wrapForSmartAdd; import static loadableUtils.utils.intToHex_flexLength; import static loadableUtils.utils.parseStdFunctionsList; import static loadableUtils.utils.asSet; import static loadableUtils.utils.autoFrameTitle; import static loadableUtils.utils.autoFrameTitle_value; import static loadableUtils.utils.westCenterAndEast; import static loadableUtils.utils.hasLock; import static loadableUtils.utils.scaffoldCalled; import static loadableUtils.utils.restart; import static loadableUtils.utils.installTrayIcon; import static loadableUtils.utils.shootScreen2; import static loadableUtils.utils.toStringWithClass; import static loadableUtils.utils.hopeningTag; import static loadableUtils.utils.dropNumberPrefix; import static loadableUtils.utils.fConst; import static loadableUtils.utils.tempSetField; import static loadableUtils.utils.filter; import static loadableUtils.utils.bindCheckBoxToLiveValue; import static loadableUtils.utils.fsIOpt; import static loadableUtils.utils.deleteAllFilesInDirectory; import static loadableUtils.utils.copyImagePart; import static loadableUtils.utils.appendWithNewLine; import static loadableUtils.utils.assertEqualsVerbose; import static loadableUtils.utils.isOnPATH; import static loadableUtils.utils.isGeneralFileServerSnippet; import static loadableUtils.utils.syncLinkedHashSet; import static loadableUtils.utils.unwrapTrivialExceptionWraps; import static loadableUtils.utils.nfilter; import static loadableUtils.utils.sortFilesByName; import static loadableUtils.utils.fracNonNeg; import static loadableUtils.utils.plusPrefixUnlessMinus; import static loadableUtils.utils.tok_staticFunctionAlwaysReturnsVoid; import static loadableUtils.utils.isKnownVoidFunction_uncached; import static loadableUtils.utils.addToContainer; import static loadableUtils.utils.mapPut; import static loadableUtils.utils.tag; import static loadableUtils.utils.printStructure; import static loadableUtils.utils.onChange; import static loadableUtils.utils.splitCamelCase; import static loadableUtils.utils.betterCIComparator; import static loadableUtils.utils.appendColonIfNempty; import static loadableUtils.utils.pingSource; import static loadableUtils.utils.loadFont; import static loadableUtils.utils.hotwireSharingLibraries_silently; import static loadableUtils.utils.loadTextFileFromZipFile; import static loadableUtils.utils.dm_popInModule; import static loadableUtils.utils.dropLeadingDots; import static loadableUtils.utils.mapToParams; import static loadableUtils.utils.loadGZTextFile; import static loadableUtils.utils.isNonEmptySingleZip_byMagicHeader; import static loadableUtils.utils.dm_vis; import static loadableUtils.utils.probabilisticForEach; import static loadableUtils.utils.utf8streamToString; import static loadableUtils.utils.frac_nonNeg; import static loadableUtils.utils.isInQ; import static loadableUtils.utils.uniqueFileNameUsingMD5_80_v2; import static loadableUtils.utils.isMenuSeparatorIndicator; import static loadableUtils.utils.applyMargin; import static loadableUtils.utils.intMatrixToBufferedImage; import static loadableUtils.utils.withTopMargin; import static loadableUtils.utils.downloadLock; import static loadableUtils.utils.hasGlobalOption; import static loadableUtils.utils.dm_inQ; import static loadableUtils.utils.dirOfFile; import static loadableUtils.utils.bindJLabelToLiveValue; import static loadableUtils.utils.error; import static loadableUtils.utils.setBackground; import static loadableUtils.utils.dm_getFlag; import static loadableUtils.utils.renderVars; import static loadableUtils.utils.sysNow; import static loadableUtils.utils.innerException; import static loadableUtils.utils.isCurrentThread; import static loadableUtils.utils.dropPrefixTrim; import static loadableUtils.utils.elapsedSeconds; import static loadableUtils.utils.bigint; import static loadableUtils.utils.hotwire; import static loadableUtils.utils.wrapPrimitiveArrayAsImmutableList; import static loadableUtils.utils.matrixOfMatricesToListOfLists; import static loadableUtils.utils.metaGet; import static loadableUtils.utils.newSubListOrSame; import static loadableUtils.utils.caseInsensitiveSet_treeSet; import static loadableUtils.utils.heldInstance; import static loadableUtils.utils.veryQuickJava; import static loadableUtils.utils.firstJavaToken; import static loadableUtils.utils.fromUTF8; import static loadableUtils.utils.listCreateAndAdd; import static loadableUtils.utils.nestedIterator; import static loadableUtils.utils.tok_packageName; import static loadableUtils.utils.getProgramName; import static loadableUtils.utils.twoPi; import static loadableUtils.utils.trayIcon_imageAutoSize; import loadableUtils.utils.Pair; import loadableUtils.utils.BetterThreadLocal; import loadableUtils.utils.ISleeper_v2; import loadableUtils.utils.Sleeping; import loadableUtils.utils.IBWImage; import loadableUtils.utils.WidthAndHeight; import loadableUtils.utils.WidthAndHeightImpl; import loadableUtils.utils.IntRange; import loadableUtils.utils.Enterable; import loadableUtils.utils.G2Drawable; import static loadableUtils.utils.getPrintLog; //import loadableUtils.utils.ImageSurface; import static loadableUtils.utils.safeUnstructure; import static loadableUtils.utils.unstructure; import static loadableUtils.utils.StefansOS_ConnectToServer; import static loadableUtils.utils._MethodCache; import static loadableUtils.utils.defaultMargin;