- Timestamp:
- 05/02/19 12:53:08 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/expeditee/gui/FrameIO.java
r1341 r1342 1022 1022 1023 1023 public static void DisableCache() { 1024 System.err.println(" --------- Cache Disabled --------- "); 1024 1025 _UseCache = false; 1025 1026 } 1026 1027 1027 1028 public static void EnableCache() { 1029 System.err.println(" --------- Cache Enabled --------- "); 1028 1030 _UseCache = true; 1029 1031 } 1030 1032 1031 1033 public static void SuspendCache() { 1034 System.err.println("SuspendCache: _UseCache" + " was " + _UseCache); 1032 1035 if (_UseCache) { 1033 1036 DisableCache(); … … 1036 1039 _SuspendedCache = false; 1037 1040 } 1041 System.err.println(" Cache is suspended -> " + _SuspendedCache); 1042 System.err.println(" _UseCache is -> " + _UseCache); 1043 System.err.println(); 1038 1044 } 1039 1045 1040 1046 public static void ResumeCache() { 1047 System.err.println("ResumeCache: _UseCache" + " was " + _UseCache); 1041 1048 if (_SuspendedCache) { 1042 1049 EnableCache(); 1043 1050 _SuspendedCache = false; 1044 1051 } 1052 System.err.println(" Cache is suspended -> " + _SuspendedCache); 1053 System.err.println(" _UseCache is -> " + _UseCache); 1054 System.err.println(); 1045 1055 } 1046 1056 … … 1227 1237 1228 1238 // Check if we are trying to save an out of date version 1239 // Q: Why do we ignore version conflicts if the saved version is zero? 1240 // A: Sometimes a Frame object in memory with a specified path is not 'connected' 1241 // to the file found at that specified path yet. This occurs if a frame object 1242 // has been created, its path assigned and saved to disk; with the intention 1243 // discarding this Frame object and later saving a different Frame object to 1244 // that File. One example of this is when @old frames are created. 1245 // The new Frame object that is created and saved only to be discarded, has a 1246 // version number of zero. 1247 // Therefore, if the file created from the discarded Frame has its modification 1248 // date compared to the modification date on the Frame object that will eventually 1249 // be used to overwrite that file, it causes a false positive conflict. Checking 1250 // for the zero version number fixes this. 1229 1251 String framesetName = toSave.getFramesetName(); 1230 1252 boolean isBayFrameset =
Note:
See TracChangeset
for help on using the changeset viewer.