Displays an error message and returns true if the ImageJ version is less than the one specified.
(String version)
| 1313 | /** Displays an error message and returns true if the |
| 1314 | ImageJ version is less than the one specified. */ |
| 1315 | public static boolean versionLessThan(String version) { |
| 1316 | boolean lessThan = ImageJ.VERSION.compareTo(version)<0; |
| 1317 | if (lessThan) |
| 1318 | error("This plugin or macro requires ImageJ "+version+" or later. Use\nHelp>Update ImageJ to upgrade to the latest version."); |
| 1319 | return lessThan; |
| 1320 | } |
| 1321 | |
| 1322 | /** Displays a "Process all images?" dialog. Returns |
| 1323 | 'flags'+PlugInFilter.DOES_STACKS if the user selects "Yes", |