- Timestamp:
- 2015-10-19T16:19:21+02:00 (9 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/MapStatus.java
r8900 r8907 350 350 private MapFrame parent; 351 351 352 private BlockingQueue<MouseState> incommingMouseState = new LinkedBlockingQueue<>();352 private final BlockingQueue<MouseState> incomingMouseState = new LinkedBlockingQueue<>(); 353 353 354 354 private Point lastMousePos; … … 367 367 for (;;) { 368 368 try { 369 final MouseState ms = incom mingMouseState.take();369 final MouseState ms = incomingMouseState.take(); 370 370 if (parent != Main.map) 371 371 return; // exit, if new parent. … … 651 651 */ 652 652 public synchronized void updateMousePosition(Point mousePos, int modifiers) { 653 MouseState ms = new MouseState(); 654 if (mousePos == null) { 655 ms.mousePos = lastMousePos; 656 } else { 653 if (mousePos != null) { 657 654 lastMousePos = mousePos; 658 655 } 656 MouseState ms = new MouseState(lastMousePos, modifiers); 659 657 // remove mouse states that are in the queue. Our mouse state is newer. 660 incom mingMouseState.clear();661 incom mingMouseState.offer(ms);658 incomingMouseState.clear(); 659 incomingMouseState.offer(ms); 662 660 } 663 661 } … … 667 665 * @author imi 668 666 */ 669 static class MouseState { 670 private Point mousePos; 671 private int modifiers; 667 private static class MouseState { 668 private final Point mousePos; 669 private final int modifiers; 670 671 MouseState(Point mousePos, int modifiers) { 672 this.mousePos = mousePos; 673 this.modifiers = modifiers; 674 } 672 675 } 673 676 -
trunk/src/org/openstreetmap/josm/gui/dialogs/relation/MemberTableMemberCellRenderer.java
r8903 r8907 16 16 public class MemberTableMemberCellRenderer extends MemberTableCellRenderer { 17 17 18 19 20 18 /** 19 * Constructs a new {@code MemberTableMemberCellRenderer}. 20 */ 21 21 public MemberTableMemberCellRenderer() { 22 22 super();
Note:
See TracChangeset
for help on using the changeset viewer.