Changeset 18278 in josm for trunk/src/org/openstreetmap/josm/data/imagery
- Timestamp:
- 2021-10-17T06:14:05+02:00 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/imagery/street_level/IImageEntry.java
r18246 r18278 8 8 import java.time.Instant; 9 9 import java.util.List; 10 10 11 import javax.imageio.IIOParam; 11 12 … … 16 17 * An interface for image entries that will be shown in {@link org.openstreetmap.josm.gui.layer.geoimage.ImageDisplay} 17 18 * @author Taylor Smock 19 * @param <I> type of image 18 20 * @since 18246 19 21 */ … … 94 96 95 97 /** 98 * Delete the image 99 * @return {@code true} if deletion was successful 100 * @throws UnsupportedOperationException If the implementation does not support deletion. 101 * Use {@link #isDeleteSupported()}} to check for support. 102 * @since 18278 103 */ 104 default boolean delete() { 105 throw new UnsupportedOperationException("remove is not supported for " + this.getClass().getSimpleName()); 106 } 107 108 /** 109 * Check if image deletion is supported 110 * @return {@code true} if deletion is supported 111 * @since 18278 112 */ 113 default boolean isDeleteSupported() { 114 return false; 115 } 116 117 /** 96 118 * Returns a display name for this entry (shown in image viewer title bar) 97 119 * @return a display name for this entry
Note:
See TracChangeset
for help on using the changeset viewer.