Ignore:
Timestamp:
2009-10-25T15:51:51+01:00 (16 years ago)
Author:
Gubaer
Message:

fixed #3739: History dialog displays anonymous users as "User: ". Should be "User: <anonymous>" or similar
Added context-sensitive help to the HistoryBrowser

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/tools/UrlLabel.java

    r2250 r2318  
    4848    }
    4949
     50    /**
     51     * Sets the URL to be visited if the user clicks on this URL label. If null, the
     52     * label turns into a normal label without hyperlink.
     53     *
     54     * @param url the url. Can be null.
     55     */
    5056    public void setUrl(String url) {
    51         this.url = url == null ? "" : url;
     57        this.url = url;
    5258        refresh();
    5359    }
    5460
     61    /**
     62     * Sets the text part of the URL label. Defaults to the empty string if description is null.
     63     *
     64     * @param description the description
     65     */
    5566    public void setDescription(String description) {
    5667        this.description = description == null? "" : description;
     68        this.description = this.description.replace("&", "&amp;").replace(">", "&gt;").replace("<", "&lt;");
    5769        refresh();
    5870    }
Note: See TracChangeset for help on using the changeset viewer.