Changeset 10179 in josm for trunk/src/org/openstreetmap/josm/gui/conflict/tags/TagConflictResolver.java
- Timestamp:
- 2016-05-11T02:44:10+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/conflict/tags/TagConflictResolver.java
r9543 r10179 21 21 * This is a UI widget for resolving tag conflicts, i.e. differences of the tag values 22 22 * of multiple {@link org.openstreetmap.josm.data.osm.OsmPrimitive}s. 23 * 24 * 23 * @since 2008 25 24 */ 26 25 public class TagConflictResolver extends JPanel { … … 29 28 private final TagConflictResolverModel model; 30 29 /** selects whether only tags with conflicts are displayed */ 31 private JCheckBox cbShowTagsWithConflictsOnly; 32 private JCheckBox cbShowTagsWithMultiValuesOnly; 30 private final JCheckBox cbShowTagsWithConflictsOnly = new JCheckBox(tr("Show tags with conflicts only")); 31 private final JCheckBox cbShowTagsWithMultiValuesOnly = new JCheckBox(tr("Show tags with multiple values only")); 32 33 /** 34 * Constructs a new {@code TagConflictResolver}. 35 */ 36 public TagConflictResolver() { 37 this.model = new TagConflictResolverModel(); 38 build(); 39 } 33 40 34 41 protected JPanel buildInfoPanel() { … … 47 54 gc.fill = GridBagConstraints.HORIZONTAL; 48 55 gc.weighty = 0.0; 49 pnl.add(cbShowTagsWithConflictsOnly = new JCheckBox(tr("Show tags with conflicts only")), gc);50 pnl.add(cbShowTagsWithMultiValuesOnly = new JCheckBox(tr("Show tags with multiple values only")), gc);56 pnl.add(cbShowTagsWithConflictsOnly, gc); 57 pnl.add(cbShowTagsWithMultiValuesOnly, gc); 51 58 cbShowTagsWithConflictsOnly.addChangeListener( 52 59 new ChangeListener() { … … 92 99 93 100 /** 94 * Constructs a new {@code TagConflictResolver}.95 */96 public TagConflictResolver() {97 this.model = new TagConflictResolverModel();98 build();99 }100 101 /**102 101 * Replies the model used by this dialog 103 102 *
Note:
See TracChangeset
for help on using the changeset viewer.