Changeset 7001 in josm for trunk/src/org/openstreetmap/josm/gui/widgets/PopupMenuLauncher.java
- Timestamp:
- 2014-04-26T03:53:35+02:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/widgets/PopupMenuLauncher.java
r6070 r7001 78 78 protected boolean checkSelection(Component component, Point p) { 79 79 if (component instanceof JList) { 80 return checkListSelection((JList) component, p) > -1; 80 return checkListSelection((JList<?>) component, p) > -1; 81 81 } else if (component instanceof JTable) { 82 82 return checkTableSelection((JTable) component, p) > -1; … … 107 107 } 108 108 109 protected int checkListSelection(JList list, Point p) { 109 protected int checkListSelection(JList<?> list, Point p) { 110 110 int idx = list.locationToIndex(p); 111 111 if (idx >= 0 && idx < list.getModel().getSize() && list.getSelectedIndices().length < 2 && !list.isSelectedIndex(idx)) {
Note:
See TracChangeset
for help on using the changeset viewer.
