Ignore:
Timestamp:
2016-04-09T17:07:54+02:00 (8 years ago)
Author:
Don-vip
Message:

refactor classes from corrector package, add javadoc

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  
    11// License: GPL. For details, see LICENSE file.
    2 package org.openstreetmap.josm.corrector;
     2package org.openstreetmap.josm.gui.correction;
    33
    44import static org.openstreetmap.josm.tools.I18n.tr;
     
    66import java.util.List;
    77
     8import org.openstreetmap.josm.data.correction.TagCorrection;
     9
     10/**
     11 * Tag correction table model.
     12 * @since 729
     13 */
    814public class TagCorrectionTableModel extends CorrectionTableModel<TagCorrection> {
    915
     16    /**
     17     * Constructs a new {@code TagCorrectionTableModel}.
     18     * @param tagCorrections list of tag corrections
     19     */
    1020    public TagCorrectionTableModel(List<TagCorrection> tagCorrections) {
    1121        super(tagCorrections);
     
    2838        case 3:
    2939            return tr("New value");
     40        default:
     41            return null;
    3042        }
    31         return null;
    3243    }
    3344
     
    4556        case 3:
    4657            return tagCorrection.newValue;
     58        default:
     59            return null;
    4760        }
    48         return null;
    4961    }
    5062
     
    5365        TagCorrection tagCorrection = getCorrections().get(row);
    5466        return (column == 2 && tagCorrection.isKeyChanged())
    55                 || (column == 3 && tagCorrection.isValueChanged());
     67            || (column == 3 && tagCorrection.isValueChanged());
    5668    }
    57 
    5869}
Note: See TracChangeset for help on using the changeset viewer.