Changeset 31858 in osm for applications/editors/josm/plugins/wikipedia
- Timestamp:
- 2015-12-25T20:05:58+01:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/wikipedia/src/org/wikipedia/WikidataTagCellRenderer.java
r31857 r31858 14 14 import org.openstreetmap.josm.Main; 15 15 import org.openstreetmap.josm.tools.LanguageInfo; 16 import org. testng.internal.Utils;16 import org.openstreetmap.josm.tools.Utils; 17 17 18 18 public class WikidataTagCellRenderer extends DefaultTableCellRenderer { … … 56 56 final String label = labelCache.get(id).isDone() ? labelCache.get(id).get() : null; 57 57 final JLabel component = (JLabel) super.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, column); 58 component.setText("<html>" + Utils.escape Html(id) + (label != null59 ? " <span color='gray'>" + Utils.escape Html(label) + "</span>"58 component.setText("<html>" + Utils.escapeReservedCharactersHTML(id) + (label != null 59 ? " <span color='gray'>" + Utils.escapeReservedCharactersHTML(label) + "</span>" 60 60 : "")); 61 61 component.setToolTipText(label);
Note:
See TracChangeset
for help on using the changeset viewer.