- Timestamp:
- 2015-12-24T18:24:19+01:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/conflict/tags/RelationMemberConflictDecisionEditor.java
r8510 r9143 3 3 4 4 import java.awt.Component; 5 import java.awt.event.ActionEvent; 6 import java.awt.event.ActionListener; 5 7 import java.util.EventObject; 6 8 … … 12 14 import org.openstreetmap.josm.gui.widgets.JosmComboBox; 13 15 16 /** 17 * Table cell editor for relation member conflict resolver table. 18 * @since 2070 19 */ 14 20 public class RelationMemberConflictDecisionEditor extends JosmComboBox<RelationMemberConflictDecisionType> implements TableCellEditor { 21 22 private final transient CellEditorSupport tableCellEditorSupport; 23 private RelationMemberConflictDecisionType originalValue; 15 24 16 25 /** … … 29 38 @Override 30 39 public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column) { 40 addActionListener(new ActionListener() { 41 @Override 42 public void actionPerformed(ActionEvent e) { 43 stopCellEditing(); 44 } 45 }); 31 46 setSelectedItem(value); 32 47 this.originalValue = (RelationMemberConflictDecisionType) value; 33 48 return this; 34 49 } 35 36 private final transient CellEditorSupport tableCellEditorSupport;37 private RelationMemberConflictDecisionType originalValue;38 50 39 51 @Override
Note:
See TracChangeset
for help on using the changeset viewer.