Changeset 143 in josm for src/org/openstreetmap/josm/gui/dialogs/HistoryDialog.java
- Timestamp:
- 2006-09-30T19:05:43+02:00 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/org/openstreetmap/josm/gui/dialogs/HistoryDialog.java
r129 r143 77 77 */ 78 78 private JTable history = new JTable(data); 79 private JScrollPane historyPane = new JScrollPane(history); 79 80 80 81 private Map<OsmPrimitive, List<HistoryItem>> cache = new HashMap<OsmPrimitive, List<HistoryItem>>(); … … 85 86 public HistoryDialog() { 86 87 super(tr("History"), "history", tr("Display the history of all selected items."), KeyEvent.VK_H, 150); 87 history.setVisible(false); 88 historyPane.setVisible(false); 88 89 notLoaded.setVisible(true); 89 90 … … 115 116 JPanel centerPanel = new JPanel(new GridBagLayout()); 116 117 centerPanel.add(notLoaded, GBC.eol().fill(GBC.BOTH)); 117 centerPanel.add( new JScrollPane(history), GBC.eol().fill(GBC.BOTH));118 centerPanel.add(historyPane, GBC.eol().fill(GBC.BOTH)); 118 119 add(centerPanel, BorderLayout.CENTER); 119 120 … … 160 161 Collection<OsmPrimitive> sel = Main.ds.getSelected(); 161 162 if (!cache.keySet().containsAll(sel)) { 162 history.setVisible(false); 163 historyPane.setVisible(false); 163 164 notLoaded.setVisible(true); 164 165 } else { … … 169 170 for (HistoryItem i : orderedHistory) 170 171 data.addRow(new Object[]{i.osm, i.osm.timestamp, i.visible}); 171 history.setVisible(true); 172 historyPane.setVisible(true); 172 173 notLoaded.setVisible(false); 173 174 }
Note:
See TracChangeset
for help on using the changeset viewer.