Changeset 16489 in josm for trunk/src/org
- Timestamp:
- 2020-05-23T22:03:33+02:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/dialogs/relation/MemberTable.java
r16438 r16489 14 14 import javax.swing.AbstractAction; 15 15 import javax.swing.DropMode; 16 import javax.swing.JComponent; 16 17 import javax.swing.JPopupMenu; 17 18 import javax.swing.JTable; … … 23 24 import org.openstreetmap.josm.actions.AutoScaleAction; 24 25 import org.openstreetmap.josm.actions.AutoScaleAction.AutoScaleMode; 26 import org.openstreetmap.josm.actions.HistoryInfoAction; 25 27 import org.openstreetmap.josm.actions.ZoomToAction; 26 28 import org.openstreetmap.josm.data.osm.OsmPrimitive; … … 31 33 import org.openstreetmap.josm.gui.dialogs.relation.sort.WayConnectionType; 32 34 import org.openstreetmap.josm.gui.dialogs.relation.sort.WayConnectionType.Direction; 35 import org.openstreetmap.josm.gui.history.HistoryBrowserDialogManager; 33 36 import org.openstreetmap.josm.gui.layer.LayerManager.LayerAddEvent; 34 37 import org.openstreetmap.josm.gui.layer.LayerManager.LayerChangeListener; … … 70 73 setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION); 71 74 putClientProperty("terminateEditOnFocusLost", Boolean.TRUE); 75 HistoryInfoAction historyAction = MainApplication.getMenu().historyinfo; 76 getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(historyAction.getShortcut().getKeyStroke(), "historyAction"); 77 getActionMap().put("historyAction", historyAction); 72 78 73 79 installCustomNavigation(0); … … 100 106 menu.add(new SelectPreviousGapAction()); 101 107 menu.add(new SelectNextGapAction()); 108 menu.add(new HistoryInfoAction() { 109 @Override 110 public void actionPerformed(ActionEvent ae) { 111 Collection<OsmPrimitive> sel = getMemberTableModel().getSelectedChildPrimitives(); 112 HistoryBrowserDialogManager.getInstance().showHistory(sel); 113 } 114 }); 102 115 return menu; 103 116 }
Note:
See TracChangeset
for help on using the changeset viewer.