Changeset 30532 in osm for applications/editors/josm/plugins/ElevationProfile/src/org
- Timestamp:
- 2014-07-14T04:18:06+02:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/ElevationProfile/src/org/openstreetmap/josm/plugins/elevation/gui/ElevationProfileDialog.java
r30381 r30532 63 63 private final JLabel totalTimeLabel; 64 64 private final JLabel distLabel; 65 private final JComboBox trackCombo;65 private final JComboBox<IElevationProfile> trackCombo; 66 66 private final JButton zoomButton; 67 67 … … 170 170 zoomButton.setEnabled(false); 171 171 172 trackCombo = new JComboBox (new TrackModel());172 trackCombo = new JComboBox<>(new TrackModel()); 173 173 trackCombo.setPreferredSize(new Dimension(200, 24)); // HACK! 174 174 trackCombo.setEnabled(false); // we have no model on startup … … 254 254 * that the model has changed. 255 255 */ 256 @SuppressWarnings("unchecked") // TODO: Can be removed in Java 1.7257 256 private void updateView() { 258 257 if (model == null) { … … 410 409 } 411 410 412 @SuppressWarnings("rawtypes") // TODO: Can be removed in Java 1.7 413 class TrackModel implements ComboBoxModel { 411 class TrackModel implements ComboBoxModel<IElevationProfile> { 414 412 private Collection<ListDataListener> listeners; 415 413 … … 445 443 446 444 @Override 447 public ObjectgetSelectedItem() {445 public IElevationProfile getSelectedItem() { 448 446 if (model == null) return null; 449 447 … … 460 458 } 461 459 } 462 463 460 } 464 461 }
Note:
See TracChangeset
for help on using the changeset viewer.