Changeset 30532 in osm for applications/editors/josm/plugins/tracer2/src
- Timestamp:
- 2014-07-14T04:18:06+02:00 (11 years ago)
- Location:
- applications/editors/josm/plugins/tracer2/src/org/openstreetmap/josm/plugins/tracer2/preferences
- Files:
-
- 2 edited
-
ServerParamDialog.java (modified) (4 diffs)
-
ServerParamSelectDialog.java (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/tracer2/src/org/openstreetmap/josm/plugins/tracer2/preferences/ServerParamDialog.java
r30049 r30532 56 56 private JTextField m_oDescription = new JTextField(); 57 57 private JTextArea m_oUrl = new JTextArea(5,5); 58 private JComboBox m_oTileSize; 59 private JComboBox m_oResolution; 58 private JComboBox<String> m_oTileSize; 59 private JComboBox<String> m_oResolution; 60 60 //private JTextField m_oSkipBottom = new JTextField(); 61 private JComboBox m_oMode; 61 private JComboBox<String> m_oMode; 62 62 private JTextField m_oThreshold = new JTextField(); 63 private JComboBox m_oPointsPerCircle; 63 private JComboBox<String> m_oPointsPerCircle; 64 64 private JTextField m_oTag = new JTextField(); 65 65 private JTextField m_oPreferredValues = new JTextField(); … … 112 112 } 113 113 114 private void loadComboBox( JComboBox c, String strValue, String[] astrValues ) { 114 private void loadComboBox( JComboBox<?> c, String strValue, String[] astrValues ) { 115 115 int pos = 0; 116 116 for ( String str: astrValues ) { … … 123 123 } 124 124 125 private String saveComboBox( JComboBox c, String[] astrValues ) { 125 private String saveComboBox( JComboBox<?> c, String[] astrValues ) { 126 126 return astrValues[c.getSelectedIndex()]; 127 127 } … … 140 140 setButtonIcons(new String[] { "ok.png", "cancel.png" }); 141 141 142 m_oTileSize = new JComboBox(m_astrTileSize); 143 m_oResolution = new JComboBox(m_astrResolution); 144 m_oMode = new JComboBox(m_astrMode); 145 m_oPointsPerCircle = new JComboBox(m_astrPointsPerCircle); 142 m_oTileSize = new JComboBox<>(m_astrTileSize); 143 m_oResolution = new JComboBox<>(m_astrResolution); 144 m_oMode = new JComboBox<>(m_astrMode); 145 m_oPointsPerCircle = new JComboBox<>(m_astrPointsPerCircle); 146 146 147 147 load(); -
applications/editors/josm/plugins/tracer2/src/org/openstreetmap/josm/plugins/tracer2/preferences/ServerParamSelectDialog.java
r30049 r30532 34 34 public class ServerParamSelectDialog extends JPanel { 35 35 36 /** 37 * 38 */ 39 private static final long serialVersionUID = 5655941545321036641L; 40 41 private JComboBox m_oComboBox; 36 private JComboBox<String> m_oComboBox; 42 37 List<ServerParam> m_listServerParam; 43 38 private boolean m_bShow = true; … … 74 69 i++; 75 70 } 76 m_oComboBox = new JComboBox(astr); 71 m_oComboBox = new JComboBox<>(astr); 77 72 m_oComboBox.setSelectedIndex(pos); 78 73
Note:
See TracChangeset
for help on using the changeset viewer.
