Changeset 6524 in josm for trunk/src/org/openstreetmap/josm/corrector
- Timestamp:
- 2013-12-24T21:12:40+01:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/corrector/ReverseWayNoTagCorrector.java
r6362 r6524 15 15 import org.openstreetmap.josm.gui.ConditionalOptionPaneUtil; 16 16 import org.openstreetmap.josm.gui.DefaultNameFormatter; 17 import org.openstreetmap.josm.tools.Utils; 17 18 18 19 /** 19 20 * A ReverseWayNoTagCorrector warns about ways that should not be reversed 20 * because their semantic meaning cannot be preserved in that case. 21 * because their semantic meaning cannot be preserved in that case. 21 22 * E.g. natural=coastline, natural=cliff, barrier=retaining_wall cannot be changed. 22 23 * @see ReverseWayTagCorrector for handling of tags that can be modified (oneway=yes, etc.) … … 30 31 31 32 /** 32 * Tags that imply a semantic meaning from the way direction and cannot be changed. 33 * Tags that imply a semantic meaning from the way direction and cannot be changed. 33 34 */ 34 35 public static final TagCollection directionalTags = new TagCollection(Arrays.asList(new Tag[]{ … … 46 47 47 48 /** 48 * Replies the tags that imply a semantic meaning from <code>way</code> direction and cannot be changed. 49 * Replies the tags that imply a semantic meaning from <code>way</code> direction and cannot be changed. 49 50 * @param way The way to look for 50 51 * @return tags that imply a semantic meaning from <code>way</code> direction and cannot be changed … … 68 69 return tags.iterator().next().toString(); 69 70 } else if (tags.size() > 1) { 70 StringBuilder s = new StringBuilder("<ul>"); 71 for (Tag t : tags) { 72 s.append("<li>").append(t).append("</li>"); 73 } 74 s.append("</ul>"); 75 return s.toString(); 71 return Utils.joinAsHtmlUnorderedList(tags); 76 72 } else { 77 73 return "";
Note:
See TracChangeset
for help on using the changeset viewer.