project/com.nokia.carbide.cpp.epoc.engine/src/com/nokia/carbide/internal/cpp/epoc/engine/model/ViewDataCache.java
changeset 634 baa31ffa93b5
parent 610 bfb3ab3f70f2
child 743 78fd666a897a
equal deleted inserted replaced
633:1bb6b7462d64 634:baa31ffa93b5
   216 		}
   216 		}
   217 	}
   217 	}
   218 	
   218 	
   219 	public static class ModelFileTimestampCollection {
   219 	public static class ModelFileTimestampCollection {
   220 		/**
   220 		/**
   221 		 * The minimum timestamp resolution for a file in ms (based on heuristics for the OS).
       
   222 		 * VFAT on Win32 uses 2 second increments.  Linux ext2/3 uses 1 second resolution, 
       
   223 		 * until ext4, where it becomes nanoseconds.
       
   224 		 * Assume the worst format in all cases.
       
   225 		 */
       
   226 		public static final long MIN_TIMESTAMP_RESOLUTION = HostOS.IS_WIN32 ? 2000 : 1000;
       
   227 		/**
       
   228 		 * Delay in ms between successive checks of the filesystem, to avoid wasting time
   221 		 * Delay in ms between successive checks of the filesystem, to avoid wasting time
   229 		 * when such checks are slow, and in cases where it's unlikely the human will edit files
   222 		 * when such checks are slow, and in cases where it's unlikely the human will edit files
   230 		 * fast enough to care.
   223 		 * fast enough to care.
   231 		 */
   224 		 */
   232 		public static final long QUANTUM = HostOS.IS_WIN32 ? 50 : 10;
   225 		public static final long QUANTUM = HostOS.IS_WIN32 ? 50 : 10;
   422 	 * @param state
   415 	 * @param state
   423 	 * @param key
   416 	 * @param key
   424 	 * @return
   417 	 * @return
   425 	 * @throws CoreException
   418 	 * @throws CoreException
   426 	 */
   419 	 */
       
   420 	@SuppressWarnings("unchecked")
   427 	private Data getViewData(IPath modelPath, IViewConfiguration configuration,
   421 	private Data getViewData(IPath modelPath, IViewConfiguration configuration,
   428 			ViewConfigState state, ViewConfigKey key) throws CoreException {
   422 			ViewConfigState state, ViewConfigKey key) throws CoreException {
   429 		Data data;
   423 		Data data;
   430 		if (DEBUG) {
   424 		if (DEBUG) {
   431 			System.out.println("Fetching view data for " + key);
   425 			System.out.println("Fetching view data for " + key);