Changeset 12620 in josm for trunk/src/org/openstreetmap/josm/io/FileWatcher.java
- Timestamp:
- 2017-08-22T22:26:32+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/FileWatcher.java
r11620 r12620 23 23 import org.openstreetmap.josm.gui.preferences.SourceEntry; 24 24 import org.openstreetmap.josm.tools.CheckParameterUtil; 25 import org.openstreetmap.josm.tools.Logging; 25 26 26 27 /** … … 44 45 thread = new Thread((Runnable) this::processEvents, "File Watcher"); 45 46 } catch (IOException e) { 46 Main.error(e);47 Logging.error(e); 47 48 } 48 49 } … … 104 105 */ 105 106 private void processEvents() { 106 if (Main.isDebugEnabled()) { 107 Main.debug("File watcher thread started"); 108 } 107 Logging.debug("File watcher thread started"); 109 108 while (true) { 110 109 … … 140 139 SourceEntry rule = ruleMap.get(fullPath); 141 140 if (style != null) { 142 Main.info("Map style "+style.getDisplayString()+" has been modified. Reloading style...");141 Logging.info("Map style "+style.getDisplayString()+" has been modified. Reloading style..."); 143 142 Main.worker.submit(new MapPaintStyleLoader(Collections.singleton(style))); 144 143 } else if (rule != null) { 145 Main.info("Validator rule "+rule.getDisplayString()+" has been modified. Reloading rule...");144 Logging.info("Validator rule "+rule.getDisplayString()+" has been modified. Reloading rule..."); 146 145 MapCSSTagChecker tagChecker = OsmValidator.getTest(MapCSSTagChecker.class); 147 146 if (tagChecker != null) { … … 149 148 tagChecker.addMapCSS(rule.url); 150 149 } catch (IOException | ParseException e) { 151 Main.warn(e);150 Logging.warn(e); 152 151 } 153 152 } 154 } else if ( Main.isDebugEnabled()) {155 Main.debug("Received "+kind.name()+" event for unregistered file: "+fullPath);153 } else if (Logging.isDebugEnabled()) { 154 Logging.debug("Received {0} event for unregistered file: {1}", kind.name(), fullPath); 156 155 } 157 156 }
Note:
See TracChangeset
for help on using the changeset viewer.