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

Method showError

ij/src/main/java/ij/plugin/Memory.java:122–139  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

120 }
121
122 void showError() {
123 int max = (int)(maxMemory()/1048576L);
124 String msg =
125 "AstroImageJ is unable to change the memory limit. For \n"
126 + "more information, refer to the installation notes at\n \n"
127 + " "+IJ.URL2+"/docs/install/\n"
128 + " \n";
129 if (fileMissing) {
130 if (IJ.isMacOSX())
131 msg += "The AstroImageJ application (AstroImageJ.app) was not found.\n \n";
132 else if (IJ.isWindows())
133 msg += getFileName() + " not found.\n \n";
134 fileMissing = false;
135 }
136 if (max>0)
137 msg += "Current limit: " + max + "MB";
138 IJ.showMessage("Memory", msg);
139 }
140
141 @AstroImageJ(reason = "Read JPackage config file", modified = true)
142 long getMemorySetting(String file) {

Callers

nothing calls this directly

Calls 5

maxMemoryMethod · 0.95
isMacOSXMethod · 0.95
isWindowsMethod · 0.95
getFileNameMethod · 0.95
showMessageMethod · 0.95

Tested by

no test coverage detected