MCPcopy Create free account
hub / github.com/AstroImageJ/astroimagej / open

Method open

ij/src/main/java/ij/plugin/BatchProcessor.java:412–423  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

410 }
411
412 void open() {
413 String text = IJ.openAsString("");
414 if (text==null) return;
415 if (text.startsWith("Error: "))
416 error(text.substring(7));
417 else {
418 if (text.length()>30000)
419 error("File is too large");
420 else
421 gd.getTextArea1().setText(text);
422 }
423 }
424
425 void save() {
426 macro = gd.getTextArea1().getText();

Callers 1

actionPerformedMethod · 0.95

Calls 7

openAsStringMethod · 0.95
errorMethod · 0.95
startsWithMethod · 0.80
substringMethod · 0.80
getTextArea1Method · 0.80
lengthMethod · 0.65
setTextMethod · 0.45

Tested by

no test coverage detected