- Timestamp:
- 2020-01-26T15:43:41+01:00 (5 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui/history
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/history/SelectionSynchronizer.java
r12615 r15769 52 52 DefaultListSelectionModel referenceModel = (DefaultListSelectionModel) e.getSource(); 53 53 int i = referenceModel.getMinSelectionIndex(); 54 int j = referenceModel.getMaxSelectionIndex(); 54 55 for (ListSelectionModel model : participants) { 55 56 if (model == e.getSource()) { 56 57 continue; 57 58 } 58 model.setSelectionInterval(i, i);59 model.setSelectionInterval(i, j); 59 60 } 60 61 preventRecursion = false; -
trunk/src/org/openstreetmap/josm/gui/history/TagInfoViewer.java
r15768 r15769 71 71 TagTableModel tagTableModel = model.getTagTableModel(pointInTime); 72 72 JTable table = new JTable(tagTableModel, new TagTableColumnModel()); 73 table.setSelectionMode(ListSelectionModel. SINGLE_SELECTION);73 table.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION); 74 74 selectionSynchronizer.participateInSynchronizedSelection(table.getSelectionModel()); 75 75 table.setTransferHandler(new TagInfoTransferHandler()); … … 88 88 89 89 tagMenu.add(trackJosmAction(new CopyValueAction(table, tagKeyFn, objectSp))); 90 tagMenu.add(trackJosmAction(new CopyKeyValueAction(table, tagKeyFn, objectSp))); 90 final CopyKeyValueAction copyKeyValueAction = new CopyKeyValueAction(table, tagKeyFn, objectSp); 91 tagMenu.add(trackJosmAction(copyKeyValueAction)); 92 tagMenu.addPopupMenuListener(copyKeyValueAction); 91 93 tagMenu.add(trackJosmAction(new CopyAllKeyValueAction(table, tagKeyFn, objectSp))); 92 94 tagMenu.addSeparator();
Note:
See TracChangeset
for help on using the changeset viewer.