Changeset 14855 in josm
- Timestamp:
- 2019-03-09T14:02:04+01:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/validation/util/MultipleNameVisitor.java
r14165 r14855 25 25 */ 26 26 public static final IntegerProperty MULTIPLE_NAME_MAX_LENGTH = new IntegerProperty("multiple.name.max.length", 140); 27 private static final String MULTI_CLASS_NAME = "object"; 28 private static final Icon MULTI_CLASS_ICON = ImageProvider.get("data", MULTI_CLASS_NAME); 27 29 28 30 /** The class name of the combined primitives */ … … 57 59 multiplePluralClassname = classNamePlural; 58 60 } else if (!multipleClassname.equals(className)) { 59 multipleClassname = "object";61 multipleClassname = MULTI_CLASS_NAME; 60 62 multiplePluralClassname = trn("object", "objects", 2); 61 63 } … … 65 67 displayName = name; 66 68 } else { 69 if (MULTI_CLASS_NAME.equals(multipleClassname)) { 70 icon = MULTI_CLASS_ICON; 71 } 67 72 StringBuilder sb = new StringBuilder().append(size).append(' ').append(trn(multipleClassname, multiplePluralClassname, size)); 68 73 if (multipleName.length() > 0) { … … 96 101 */ 97 102 public Icon getIcon() { 98 if (size <= 1) 99 return icon; 100 else 101 return ImageProvider.get("data", multipleClassname); 103 return icon; 102 104 } 103 105
Note:
See TracChangeset
for help on using the changeset viewer.