Ignore:
Timestamp:
2011-02-07T09:35:27+01:00 (13 years ago)
Author:
bastiK
Message:

extended mappaint style dialog

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/preferences/SourceEntry.java

    r3855 r3863  
    8989        if (shortdescription != null)
    9090            return shortdescription;
    91         /**
    92          * extract file part from url, e.g.:
    93          * http://www.test.com/file.xml?format=text  --> file.xml
    94          */
     91        else
     92            return getFileNamePart();
     93    }
     94
     95    /**
     96     * extract file part from url, e.g.:
     97     * http://www.test.com/file.xml?format=text  --> file.xml
     98     */
     99    public String getFileNamePart() {
    95100        Pattern p = Pattern.compile("([^/\\\\]*?)([?].*)?$");
    96101        Matcher m = p.matcher(url);
Note: See TracChangeset for help on using the changeset viewer.