Changeset 12620 in josm for trunk/src/org/openstreetmap/josm/gui/MapStatus.java
- Timestamp:
- 2017-08-22T22:26:32+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/MapStatus.java
r12391 r12620 79 79 import org.openstreetmap.josm.tools.GBC; 80 80 import org.openstreetmap.josm.tools.ImageProvider; 81 import org.openstreetmap.josm.tools.Logging; 81 82 import org.openstreetmap.josm.tools.Utils; 82 83 … … 203 204 public void appendLogMessage(String message) { 204 205 if (message != null && !message.isEmpty()) { 205 Main.info("appendLogMessage not implemented for background tasks. Message was: " + message);206 Logging.info("appendLogMessage not implemented for background tasks. Message was: " + message); 206 207 } 207 208 } … … 357 358 oldMousePos = ms.mousePos; 358 359 } catch (ConcurrentModificationException ex) { 359 Main.warn(ex);360 Logging.warn(ex); 360 361 } finally { 361 362 if (ds != null) { … … 415 416 EventQueue.invokeAndWait(new CollectorWorker(ms)); 416 417 } catch (InvocationTargetException e) { 417 Main.warn(e);418 Logging.warn(e); 418 419 } 419 420 } 420 421 } catch (InterruptedException e) { 421 422 // Occurs frequently during JOSM shutdown, log set to trace only 422 Main.trace("InterruptedException in "+MapStatus.class.getSimpleName());423 Logging.trace("InterruptedException in "+MapStatus.class.getSimpleName()); 423 424 Thread.currentThread().interrupt(); 424 425 } finally { … … 686 687 incomingMouseState.clear(); 687 688 if (!incomingMouseState.offer(ms)) { 688 Main.warn("Unable to handle new MouseState: " + ms);689 Logging.warn("Unable to handle new MouseState: " + ms); 689 690 } 690 691 } … … 739 740 AWTEvent.KEY_EVENT_MASK | AWTEvent.MOUSE_EVENT_MASK | AWTEvent.MOUSE_MOTION_EVENT_MASK); 740 741 } catch (SecurityException ex) { 741 Main.trace(ex);742 Logging.trace(ex); 742 743 mv.addMouseMotionListener(mouseMotionListener); 743 744 mv.addKeyListener(keyAdapter); … … 750 751 } catch (SecurityException e) { 751 752 // Don't care, awtListener probably wasn't registered anyway 752 Main.trace(e);753 Logging.trace(e); 753 754 } 754 755 mv.removeMouseMotionListener(mouseMotionListener); … … 1111 1112 thread.interrupt(); 1112 1113 } catch (SecurityException e) { 1113 Main.error(e);1114 Logging.error(e); 1114 1115 } 1115 1116 }
Note:
See TracChangeset
for help on using the changeset viewer.