Changeset 15678 in josm
- Timestamp:
- 2020-01-10T23:04:42+01:00 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/dialogs/relation/ReferringRelationsBrowser.java
r13564 r15678 6 6 import java.awt.BorderLayout; 7 7 import java.awt.FlowLayout; 8 import java.awt.Rectangle; 8 9 import java.awt.event.ActionEvent; 9 10 import java.awt.event.MouseAdapter; … … 66 67 public void mouseClicked(MouseEvent e) { 67 68 if (e.getClickCount() == 2 68 && !e.isAltDown() && !e.isAltGraphDown() && !e.isControlDown() && !e.isMetaDown() && !e.isShiftDown() 69 && referrers.getCellBounds(referrers.getSelectedIndex(), referrers.getSelectedIndex()).contains(e.getPoint())) { 70 editAction.actionPerformed(new ActionEvent(e.getSource(), ActionEvent.ACTION_PERFORMED, null)); 69 && !e.isAltDown() && !e.isAltGraphDown() && !e.isControlDown() && !e.isMetaDown() && !e.isShiftDown()) { 70 Rectangle cellBounds = referrers.getCellBounds(referrers.getSelectedIndex(), referrers.getSelectedIndex()); 71 if (cellBounds != null && cellBounds.contains(e.getPoint())) { 72 editAction.actionPerformed(new ActionEvent(e.getSource(), ActionEvent.ACTION_PERFORMED, null)); 73 } 71 74 } 72 75 } … … 86 89 } 87 90 91 /** 92 * Initializes the model with layer data. 93 */ 88 94 public void init() { 89 95 model.populate(getLayer().data);
Note:
See TracChangeset
for help on using the changeset viewer.