Package qupath.lib.gui.extensions
Class UpdateChecker
java.lang.Object
qupath.lib.gui.extensions.UpdateChecker
Helper class to query for updates using GitHub's web API.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classClass to represent a release version. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic UpdateChecker.ReleaseVersionQuery the most recent QuPath release on GitHub.static UpdateChecker.ReleaseVersioncheckForUpdate(GitHubProject.GitHubRepo repository) Query the latest release from a GitHub repo.
-
Constructor Details
-
UpdateChecker
public UpdateChecker()
-
-
Method Details
-
checkForUpdate
public static UpdateChecker.ReleaseVersion checkForUpdate() throws URISyntaxException, IOException, InterruptedExceptionQuery the most recent QuPath release on GitHub.- Returns:
- the latest release version, or null if this could not be determined
- Throws:
URISyntaxExceptionIOExceptionInterruptedException
-
checkForUpdate
public static UpdateChecker.ReleaseVersion checkForUpdate(GitHubProject.GitHubRepo repository) throws URISyntaxException, IOException, InterruptedException Query the latest release from a GitHub repo.- Parameters:
repository-- Returns:
- Throws:
URISyntaxExceptionIOExceptionInterruptedException
-