Changeset 18211 in josm for trunk/src/org/openstreetmap/josm/gui/widgets/UrlLabel.java
- Timestamp:
- 2021-09-12T02:10:25+02:00 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/widgets/UrlLabel.java
r17605 r18211 92 92 93 93 protected final void refresh() { 94 if ( url != null && !url.isEmpty()) {94 if (!Utils.isEmpty(url)) { 95 95 refresh("<html><a color=\"" + JosmEditorPane.getLinkColor() + "\" href=\"" + url + "\">" + description + "</a></html>", 96 96 Cursor.getPredefinedCursor(Cursor.HAND_CURSOR), … … 147 147 @Override 148 148 public void mouseClicked(MouseEvent e) { 149 if ( url != null && !url.isEmpty()) {149 if (!Utils.isEmpty(url)) { 150 150 if (SwingUtilities.isLeftMouseButton(e)) { 151 151 OpenBrowser.displayUrl(url);
Note:
See TracChangeset
for help on using the changeset viewer.