Changeset 7189 in josm for trunk/src


Ignore:
Timestamp:
2014-05-29T15:01:30+02:00 (6 years ago)
Author:
bastiK
Message:

#10078 - no style reload with r7185

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/io/FileWatcher.java

    r7188 r7189  
    7474                // (it returns the same key so it should not send events several times)
    7575                dir.toPath().register(watcher, StandardWatchEventKinds.ENTRY_MODIFY);
     76                dir.toPath().register(watcher, StandardWatchEventKinds.ENTRY_CREATE);
    7677                styleMap.put(file.toPath(), style);
    7778            }
     
    121122                        Main.worker.submit(new MapPaintStyleLoader(Collections.singleton(style)));
    122123                    } else if (Main.isDebugEnabled()) {
    123                         Main.debug("Received ENTRY_MODIFY event for unregistered file: "+fullPath);
     124                        Main.debug("Received "+kind.name()+" event for unregistered file: "+fullPath);
    124125                    }
    125126                }
Note: See TracChangeset for help on using the changeset viewer.