Changeset 1990 in josm for trunk/src/org/openstreetmap/josm/corrector
- Timestamp:
- 2009-08-23T22:37:39+02:00 (15 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/corrector
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/corrector/RoleCorrectionTableModel.java
r1930 r1990 6 6 import java.util.List; 7 7 8 import org.openstreetmap.josm.gui. PrimitiveNameFormatter;8 import org.openstreetmap.josm.gui.DefaultNameFormatter; 9 9 10 10 public class RoleCorrectionTableModel extends 11 11 CorrectionTableModel<RoleCorrection> { 12 private static final PrimitiveNameFormatter NAME_FORMATTER = new PrimitiveNameFormatter();13 12 14 13 public RoleCorrectionTableModel(List<RoleCorrection> roleCorrections) { … … 40 39 switch (colIndex) { 41 40 case 0: 42 return NAME_FORMATTER.getName(roleCorrection.relation);41 return roleCorrection.relation.getDisplayName(DefaultNameFormatter.getInstance()); 43 42 case 1: 44 43 return roleCorrection.member.getRole(); -
trunk/src/org/openstreetmap/josm/corrector/TagCorrector.java
r1857 r1990 28 28 import org.openstreetmap.josm.data.osm.Relation; 29 29 import org.openstreetmap.josm.data.osm.Way; 30 import org.openstreetmap.josm.gui.DefaultNameFormatter; 30 31 import org.openstreetmap.josm.gui.JMultilineLabel; 31 32 import org.openstreetmap.josm.gui.OptionPaneUtil; 32 import org.openstreetmap.josm.gui.PrimitiveNameFormatter;33 33 import org.openstreetmap.josm.tools.GBC; 34 34 import org.openstreetmap.josm.tools.ImageProvider; 35 35 36 36 public abstract class TagCorrector<P extends OsmPrimitive> { 37 private static final PrimitiveNameFormatter NAME_FORMATTER = new PrimitiveNameFormatter();38 37 39 38 public abstract Collection<Command> execute(P primitive, P oldprimitive) … … 101 100 102 101 final JLabel primitiveLabel = new JLabel( 103 NAME_FORMATTER.getName(primitive) + ":",102 primitive.getDisplayName(DefaultNameFormatter.getInstance()) + ":", 104 103 ImageProvider.get(OsmPrimitiveType.from(primitive)), 105 104 JLabel.LEFT … … 127 126 128 127 final JLabel primitiveLabel = new JLabel( 129 NAME_FORMATTER.getName(primitive),128 primitive.getDisplayName(DefaultNameFormatter.getInstance()), 130 129 ImageProvider.get(OsmPrimitiveType.from(primitive)), 131 130 JLabel.LEFT
Note:
See TracChangeset
for help on using the changeset viewer.