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

Method versionLessThan

ij/src/main/java/ij/IJ.java:1315–1320  ·  view source on GitHub ↗

Displays an error message and returns true if the ImageJ version is less than the one specified.

(String version)

Source from the content-addressed store, hash-verified

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",

Callers 12

requiresMethod · 0.95
setupMethod · 0.95
setupMethod · 0.95
setupMethod · 0.95
setupMethod · 0.95
setupMethod · 0.95
runMethod · 0.95
runMethod · 0.95
runMethod · 0.95
runMethod · 0.95
runMethod · 0.95
StackSorterMethod · 0.95

Calls 2

errorMethod · 0.95
compareToMethod · 0.45

Tested by

no test coverage detected