Changeset 2871 in josm for trunk/src/org/openstreetmap/josm/gui/dialogs/HistoryDialog.java
- Timestamp:
- 17.01.2010 16:37:24 (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/dialogs/HistoryDialog.java
r2710 r2871 64 64 protected ShowHistoryAction showHistoryAction; 65 65 protected ReloadAction reloadAction; 66 67 public HistoryDialog() { 68 super(tr("History"), "history", tr("Display the history of all selected items."), 69 Shortcut.registerShortcut("subwindow:history", tr("Toggle: {0}", tr("History")), KeyEvent.VK_H, 70 Shortcut.GROUP_LAYER, Shortcut.SHIFT_DEFAULT), 150); 71 build(); 72 DataSet.selListeners.add(model); 73 } 66 74 67 75 /** … … 128 136 } 129 137 130 public HistoryDialog() { 131 super(tr("History"), "history", tr("Display the history of all selected items."), 132 Shortcut.registerShortcut("subwindow:history", tr("Toggle: {0}", tr("History")), KeyEvent.VK_H, 133 Shortcut.GROUP_LAYER, Shortcut.SHIFT_DEFAULT), 150); 134 build(); 135 DataSet.selListeners.add(model); 138 @Override 139 public void showNotify() { 136 140 HistoryDataSet.getInstance().addHistoryDataSetListener(this); 141 } 142 143 @Override 144 public void hideNotify() { 145 HistoryDataSet.getInstance().removeHistoryDataSetListener(this); 137 146 } 138 147
Note: See TracChangeset
for help on using the changeset viewer.
