Ignore:
Timestamp:
02/04/19 10:54:41 (5 years ago)
Author:
bln4
Message:

org.expeditee.gui.Frame ->
org.expeditee.gui.FrameIO ->

When loading a frame and deciding if the cache should be used, the file system is now consulted to check if there is a more recent version available. If there is then the cache is not used. This is useful for collaborative frame authoring when access to frame is controlled via a system such as google drive.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/expeditee/gui/Frame.java

    r1227 r1229  
    101101
    102102        private String _modifiedDate = null;
     103        private long _modifiedDatePrecise;
    103104
    104105        private String _frozenDate = null;
     
    803804         * @param date
    804805         *            The date to set as the last modified date.
    805          */
    806         public void setLastModifyDate(String date)
    807         {
     806         * @param precise The millisecond precision last modified date.
     807         */
     808        public void setLastModifyDate(String date, long precise) {
    808809                _modifiedDate = date;
     810                _modifiedDatePrecise = precise;
     811        }
     812       
     813        /**
     814         * Sets the last modified date of this Frame to the given String.
     815         * Used during startup.  If able to be more precise then use the overloaded function.
     816         *
     817         * @param date
     818         *            The date to set as the last modified date.
     819         */
     820        public void setLastModifyDate(String date) {
     821                _modifiedDate = date;
     822                _modifiedDatePrecise = -1l;
    809823        }
    810824
     
    815829         *            The date to set as the last frozen date.
    816830         */
    817         public void setFrozenDate(String date)
    818         {
     831        public void setFrozenDate(String date)  {
    819832                _frozenDate = date;
    820833        }
     
    11981211        }
    11991212
    1200         public String getLastModifyDate()
    1201         {
     1213        public String getLastModifyDate() {
    12021214                return _modifiedDate;
     1215        }
     1216       
     1217        public long getLastModifyPrecise() {
     1218                return _modifiedDatePrecise;
    12031219        }
    12041220
Note: See TracChangeset for help on using the changeset viewer.