Class VersionInfo


  • public class VersionInfo
    extends java.lang.Object
    A class for retrieving versioning information about Magellan.
    • Constructor Summary

      Constructors 
      Constructor Description
      VersionInfo()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String getNewestVersion​(java.util.Properties properties, javax.swing.JFrame parent)
      This method tries to get the newest Version from the webserver.
      static java.lang.String getVersion​(java.io.File magellanDirectory)
      Gets the Version of this Instance.
      static boolean isNewer​(java.lang.String firstVersion, java.lang.String secondVersion)
      Returns rue if firstVersion is strictly greater than secondVersion.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • PROPERTY_KEY_UPDATECHECK_CHECK

        public static final java.lang.String PROPERTY_KEY_UPDATECHECK_CHECK
        Boolean Property to set, if UpdateCheck should be done
        See Also:
        Constant Field Values
      • PROPERTY_KEY_UPDATECHECK_FAILED

        public static final java.lang.String PROPERTY_KEY_UPDATECHECK_FAILED
        Timestamp of failed UpdateCheck
        See Also:
        Constant Field Values
      • RESOURCE_KEY_NOUPDATE_AVAIL

        public static final java.lang.String RESOURCE_KEY_NOUPDATE_AVAIL
        ResourceKey to show that the update process failed
        See Also:
        Constant Field Values
      • PROPERTY_KEY_UPDATECHECK_NIGHTLY_CHECK

        public static final java.lang.String PROPERTY_KEY_UPDATECHECK_NIGHTLY_CHECK
        ResourceKey to show that the nightly update check failed
        See Also:
        Constant Field Values
    • Constructor Detail

      • VersionInfo

        public VersionInfo()
    • Method Detail

      • getVersion

        public static java.lang.String getVersion​(java.io.File magellanDirectory)
        Gets the Version of this Instance.
      • getNewestVersion

        public static java.lang.String getNewestVersion​(java.util.Properties properties,
                                                        javax.swing.JFrame parent)
        This method tries to get the newest Version from the webserver.
      • isNewer

        public static boolean isNewer​(java.lang.String firstVersion,
                                      java.lang.String secondVersion)
        Returns rue if firstVersion is strictly greater than secondVersion.