Changeset 33276 in osm for applications/editors
- Timestamp:
- 2017-04-24T18:59:33+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/imagery-xml-bounds/src/net/boplicity/xmleditor/XmlView.java
r30735 r33276 18 18 import java.awt.Color; 19 19 import java.awt.Graphics; 20 import java.util.Collection; 20 21 import java.util.LinkedHashMap; 21 22 import java.util.Map; … … 63 64 patternColors.put(Pattern.compile(TAG_ATTRIBUTE_PATTERN), new Color( 64 65 127, 0, 127)); 65 patternColors.put(Pattern.compile(TAG_END_PATTERN), new Color(63, 127,66 127));67 66 patternColors.put(Pattern.compile(TAG_ATTRIBUTE_VALUE), new Color(42, 68 67 0, 255)); … … 104 103 } 105 104 } 105 /* Fix end tag duplication for CDATA and comments */ 106 Matcher matcher = Pattern.compile(TAG_END_PATTERN).matcher(text); 107 Color c = new Color(63, 127, 127); 108 Collection<Integer> ends = startMap.values(); 109 110 while (matcher.find()) { 111 if(!ends.contains(matcher.end())) { 112 startMap.put(matcher.start(1), matcher.end()); 113 colorMap.put(matcher.start(1), c); 114 } 115 } 106 116 107 117 // TODO: check the map for overlapping parts
Note:
See TracChangeset
for help on using the changeset viewer.