Changeset 30609 in osm for applications/editors/josm/plugins
- Timestamp:
- 2014-08-30T13:42:09+02:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/OpeningHoursEditor/src/org/openstreetmap/josm/plugins/ohe/OhePlugin.java
r30114 r30609 22 22 import javax.swing.ButtonGroup; 23 23 import javax.swing.JCheckBox; 24 import javax.swing.JComboBox; 24 25 import javax.swing.JDialog; 25 26 import javax.swing.JLabel; … … 29 30 import javax.swing.JScrollPane; 30 31 import javax.swing.JTable; 31 import javax.swing.JTextField;32 32 import javax.swing.ListSelectionModel; 33 33 import javax.swing.table.DefaultTableCellRenderer; … … 195 195 sp.setViewportView(propertyTable); 196 196 197 final JTextField newTagField = new JTextField(); 197 final JComboBox<String> newTagField = new JComboBox<>(new String[]{ 198 "opening_hours", "collection_times", "collection_times:local", "service_times", "lit"}); 198 199 199 200 JRadioButton editButton = new JRadioButton(new AbstractAction(tr("edit existing tag")) { … … 250 251 propertyTable.setEnabled(false); 251 252 newTagField.setEnabled(true); 252 newTagField.set Text(preSelectedKey);253 newTagField.setSelectedItem(preSelectedKey); 253 254 newButton.setSelected(true); 254 255 } … … 284 285 valuesToEdit = propertyData.getValueAt(propertyTable.getSelectedRow(), 1); 285 286 } else if (newButton.isSelected()) { 286 keyToEdit = newTagField.get Text();287 keyToEdit = newTagField.getSelectedItem().toString(); 287 288 } 288 289 if (keyToEdit == null)
Note:
See TracChangeset
for help on using the changeset viewer.