Package loci.plugins.util
Class LibraryChecker
java.lang.Object
loci.plugins.util.LibraryChecker
Utility methods for verifying that classes
are present and versions are correct.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumList of possible libraries for which to check. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleancheckClass(String className) Checks whether the given class is available.static booleanChecks whether ImageJ is new enough for the Bio-Formats plugins.static booleancheckImageJ(String target, String msg) Returns true the current ImageJ version is greater than or equal to the specified version.static booleancheckImageJ(String target, String msg, String title) Returns true the current ImageJ version is greater than or equal to the specified version.static booleanChecks for a new enough version of the Java Runtime Environment.static voidcheckLibrary(String className, String jarFile, HashSet<String> missing) Checks whether the given class is available; if not, adds the specified JAR file name to the hash set (presumably to report it missing to the user).static voidcheckLibrary(LibraryChecker.Library library, HashSet<String> missing) Checks for a required library.static booleancheckMissing(HashSet<String> missing) Reports missing libraries in the given hash set to the user.
-
Field Details
-
IMAGEJ_VERSION
Minimum version of ImageJ necessary for Bio-Formats plugins.- See Also:
-
IMAGEJ_MSG
Message to be displayed if ImageJ is too old for Bio-Formats plugins.- See Also:
-
URL_BF_SOFTWARE
URL for Bio-Formats web page.- See Also:
-
-
Constructor Details
-
LibraryChecker
private LibraryChecker()
-
-
Method Details
-
checkClass
Checks whether the given class is available. -
checkLibrary
Checks for a required library. -
checkLibrary
Checks whether the given class is available; if not, adds the specified JAR file name to the hash set (presumably to report it missing to the user). -
checkJava
public static boolean checkJava()Checks for a new enough version of the Java Runtime Environment. -
checkImageJ
public static boolean checkImageJ()Checks whether ImageJ is new enough for the Bio-Formats plugins. -
checkImageJ
Returns true the current ImageJ version is greater than or equal to the specified version. Displays the given warning message if the current version is too old. -
checkImageJ
Returns true the current ImageJ version is greater than or equal to the specified version. Displays the given warning message with the specified title if the current version is too old. -
checkMissing
Reports missing libraries in the given hash set to the user.- Returns:
- true iff no libraries are missing (the hash set is empty).
-