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

Method open

ij/src/main/java/ij/plugin/BatchProcesser.java:347–358  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

345 }
346
347 void open() {
348 String text = IJ.openAsString("");
349 if (text==null) return;
350 if (text.startsWith("Error: "))
351 error(text.substring(7));
352 else {
353 if (text.length()>30000)
354 error("File is too large");
355 else
356 gd.getTextArea1().setText(text);
357 }
358 }
359
360 void save() {
361 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