()
| 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) { |
nothing calls this directly
no test coverage detected