Changeset 11975 in josm for trunk/src/org
- Timestamp:
- 2017-04-22T18:55:26+02:00 (8 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/imagery/ImageryInfo.java
r11889 r11975 175 175 /** Text of a text attribution displayed when using the imagery */ 176 176 private String attributionText; 177 /** Link behing the text attribution displayed when using the imagery */ 177 /** Link to a reference stating the permission for OSM usage */ 178 private String permissionReferenceURL; 179 /** Link behind the text attribution displayed when using the imagery */ 178 180 private String attributionLinkURL; 179 181 /** Image of a graphical attribution displayed when using the imagery */ … … 222 224 @pref String attribution_text; 223 225 @pref String attribution_url; 226 @pref String permission_reference_url; 224 227 @pref String logo_image; 225 228 @pref String logo_url; … … 265 268 attribution_text = i.attributionText; 266 269 attribution_url = i.attributionLinkURL; 270 permission_reference_url = i.permissionReferenceURL; 267 271 date = i.date; 268 272 bestMarked = i.bestMarked; … … 429 433 attributionText = e.attribution_text; 430 434 attributionLinkURL = e.attribution_url; 435 permissionReferenceURL = e.permission_reference_url; 431 436 attributionImage = e.logo_image; 432 437 attributionImageURL = e.logo_url; … … 470 475 this.attributionText = i.attributionText; 471 476 this.attributionLinkURL = i.attributionLinkURL; 477 this.permissionReferenceURL = i.permissionReferenceURL; 472 478 this.attributionImage = i.attributionImage; 473 479 this.attributionImageURL = i.attributionImageURL; … … 520 526 Objects.equals(this.attributionText, other.attributionText) && 521 527 Objects.equals(this.attributionLinkURL, other.attributionLinkURL) && 528 Objects.equals(this.permissionReferenceURL, other.permissionReferenceURL) && 522 529 Objects.equals(this.attributionImageURL, other.attributionImageURL) && 523 530 Objects.equals(this.attributionImage, other.attributionImage) && … … 633 640 } 634 641 642 /** 643 * Return the permission reference URL. 644 * @param url The url. 645 * @see #setPermissionReferenceURL() 646 * @since 11975 647 */ 648 public String getPermissionReferenceURL() { 649 return permissionReferenceURL; 650 } 651 635 652 @Override 636 653 public Image getAttributionImage() { … … 691 708 public void setAttributionLinkURL(String url) { 692 709 attributionLinkURL = url; 710 } 711 712 /** 713 * Sets the permission reference URL. 714 * @param url The url. 715 * @see #getPermissionReferenceURL() 716 * @since 11975 717 */ 718 public void setPermissionReferenceURL(String url) { 719 permissionReferenceURL = url; 693 720 } 694 721 -
trunk/src/org/openstreetmap/josm/io/imagery/ImageryReader.java
r11913 r11975 197 197 "terms-of-use-text", 198 198 "terms-of-use-url", 199 "permission-ref", 199 200 "country-code", 200 201 "icon", … … 437 438 entry.setTermsOfUseText(accumulator.toString()); 438 439 break; 440 case "permission-ref": 441 entry.setPermissionReferenceURL(accumulator.toString()); 442 break; 439 443 case "terms-of-use-url": 440 444 entry.setTermsOfUseURL(accumulator.toString());
Note:
See TracChangeset
for help on using the changeset viewer.