Changeset 30532 in osm for applications/editors/josm/plugins/imageryadjust
- Timestamp:
- 2014-07-14T04:18:06+02:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/imageryadjust/src/imageryadjust/ImageryAdjustMapMode.java
r29609 r30532 165 165 166 166 @Override 167 public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected,167 public Component getListCellRendererComponent(JList<?> list, Object value, int index, boolean isSelected, 168 168 boolean cellHasFocus) { 169 169 Layer layer = (Layer) value; … … 186 186 if (adjustableLayers.size()==0) return null; 187 187 if (adjustableLayers.size()==1) return adjustableLayers.get(0); 188 JComboBox layerList = new JComboBox();188 JComboBox<Layer> layerList = new JComboBox<>(); 189 189 layerList.setRenderer(new LayerListCellRenderer()); 190 layerList.setModel(new DefaultComboBoxModel (adjustableLayers.toArray()));190 layerList.setModel(new DefaultComboBoxModel<Layer>(adjustableLayers.toArray(new Layer[0]))); 191 191 layerList.setSelectedIndex(0); 192 192
Note:
See TracChangeset
for help on using the changeset viewer.