MCPcopy Create free account
hub / github.com/BobHanson/Jmol-SwingJS / loadFileAsync

Method loadFileAsync

src/org/jmol/script/ScriptEval.java:2200–2253  ·  view source on GitHub ↗

Allows asynchronous file loading from the LOAD or SCRIPT command. Saves the context, initiates a FileLoadThread instance. When the file loading completes, the file data (sans filename) is saved in the FileManager cache under cache://localLoad_xxxxx. Context is resumed at this command in the script,

(String prefix, String filename, int i,
                              boolean doClear)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 3

loadFileResourceAsyncMethod · 0.95
checkFileExistsMethod · 0.95
evaluateLoadMethod · 0.80

Calls 14

cancelFileThreadMethod · 0.95
pushContextMethod · 0.95
startsWithMethod · 0.80
evalErrorMethod · 0.80
getMethod · 0.65
lengthMethod · 0.65
putMethod · 0.65
cacheFileByNameMethod · 0.65
startMethod · 0.65
errorStrMethod · 0.45
cacheGetMethod · 0.45

Tested by

no test coverage detected