Changeset 18267 in josm for trunk/src/org/openstreetmap/josm/plugins
- Timestamp:
- 2021-10-10T15:21:30+02:00 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/plugins/PluginInformation.java
r18211 r18267 348 348 sb.append(" <a href=\"").append(link).append("\">").append(tr("More info...")).append("</a>"); 349 349 } 350 if (downloadlink != null 351 && !downloadlink.startsWith("https://josm.openstreetmap.de/osmsvn/applications/editors/josm/dist/") 352 && !downloadlink.startsWith("https://github.com/JOSM/")) { 350 if (isExternal()) { 353 351 sb.append("<p> </p><p>").append(tr("<b>Plugin provided by an external source:</b> {0}", downloadlink)).append("</p>"); 354 352 } 355 353 sb.append("</body></html>"); 356 354 return sb.toString(); 355 } 356 357 /** 358 * Determines if this plugin comes from an external, non-official source. 359 * @return {@code true} if this plugin comes from an external, non-official source. 360 * @since 18267 361 */ 362 public boolean isExternal() { 363 return downloadlink != null 364 && !downloadlink.startsWith("https://josm.openstreetmap.de/osmsvn/applications/editors/josm/dist/") 365 && !downloadlink.startsWith("https://github.com/JOSM/"); 357 366 } 358 367
Note:
See TracChangeset
for help on using the changeset viewer.