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
Modifier and TypeClassDescriptionstatic class
Class to represent a release version. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic UpdateChecker.ReleaseVersion
Query the most recent QuPath release on GitHub.static UpdateChecker.ReleaseVersion
checkForUpdate
(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:
URISyntaxException
IOException
InterruptedException
-
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:
URISyntaxException
IOException
InterruptedException
-