Module org.jpo
Package org.jpo.gui

Class VersionUpdate

java.lang.Object
org.jpo.gui.VersionUpdate

public class VersionUpdate extends Object
This class can figure out if the current JPO version is out of date and offers to open the download page in the browser for the user to upgrade.
  • Constructor Details

    • VersionUpdate

      public VersionUpdate()
      Constructs an object that checks the latest version and then pops up a dialog offering to that the user to the download page if the version is out of date.
  • Method Details

    • getLatestJpoVersionTestOnly

      @TestOnly public static String getLatestJpoVersionTestOnly() throws IOException, URISyntaxException
      Throws:
      IOException
      URISyntaxException
    • mayCheckForUpdates

      public static boolean mayCheckForUpdates()
      This method checks the Settings to determine if we are allowed to check for version updates. This is only allowed if the ignoreVersionAlerts flag is not set and if that is OK, then we must not check before the snooze time has expired.
      Returns:
      true if we may check for updates, false if not