Class Updater

  • All Implemented Interfaces:
    java.lang.Runnable

    public class Updater
    extends java.lang.Object
    implements java.lang.Runnable
    This class handles updating the map editor.
    Todo:
    move the updater to JAPI
    Fixme:
    the updater fails on windows, the user is notified of this but still it isn't nice. The updater should be a separate application.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static @NotNull java.lang.String LAST_UPDATE_KEY
      The preferences key for last update.
    • Constructor Summary

      Constructors 
      Constructor Description
      Updater​(@Nullable java.awt.Component parentComponent, @NotNull Exiter exiter, @NotNull java.lang.String updateFileName)
      Creates a new instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void run()  
      • Methods inherited from class java.lang.Object

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

      • LAST_UPDATE_KEY

        @NotNull
        public static final @NotNull java.lang.String LAST_UPDATE_KEY
        The preferences key for last update.
        See Also:
        Constant Field Values
    • Constructor Detail

      • Updater

        public Updater​(@Nullable
                       @Nullable java.awt.Component parentComponent,
                       @NotNull
                       @NotNull Exiter exiter,
                       @NotNull
                       @NotNull java.lang.String updateFileName)
        Creates a new instance.
        Parameters:
        parentComponent - the parent component to show dialogs on
        exiter - the exiter for terminating the application
        updateFileName - the file to update
    • Method Detail

      • run

        public void run()
        Specified by:
        run in interface java.lang.Runnable