Changeset 10125 in josm for trunk/src/org/openstreetmap/josm/gui/correction/TagCorrectionTableModel.java
- Timestamp:
- 2016-04-09T17:07:54+02:00 (8 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui/correction
- Files:
-
- 1 added
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/correction/TagCorrectionTableModel.java
r10113 r10125 1 1 // License: GPL. For details, see LICENSE file. 2 package org.openstreetmap.josm. corrector;2 package org.openstreetmap.josm.gui.correction; 3 3 4 4 import static org.openstreetmap.josm.tools.I18n.tr; … … 6 6 import java.util.List; 7 7 8 import org.openstreetmap.josm.data.correction.TagCorrection; 9 10 /** 11 * Tag correction table model. 12 * @since 729 13 */ 8 14 public class TagCorrectionTableModel extends CorrectionTableModel<TagCorrection> { 9 15 16 /** 17 * Constructs a new {@code TagCorrectionTableModel}. 18 * @param tagCorrections list of tag corrections 19 */ 10 20 public TagCorrectionTableModel(List<TagCorrection> tagCorrections) { 11 21 super(tagCorrections); … … 28 38 case 3: 29 39 return tr("New value"); 40 default: 41 return null; 30 42 } 31 return null;32 43 } 33 44 … … 45 56 case 3: 46 57 return tagCorrection.newValue; 58 default: 59 return null; 47 60 } 48 return null;49 61 } 50 62 … … 53 65 TagCorrection tagCorrection = getCorrections().get(row); 54 66 return (column == 2 && tagCorrection.isKeyChanged()) 55 67 || (column == 3 && tagCorrection.isValueChanged()); 56 68 } 57 58 69 }
Note:
See TracChangeset
for help on using the changeset viewer.