Changeset 12115 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2017-05-11T01:48:13+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/layer/OsmDataLayer.java
r12028 r12115 134 134 public final List<TestError> validationErrors = new ArrayList<>(); 135 135 136 /** 137 * The default number of relations in the recent relations cache. 138 * @see #getRecentRelations() 139 */ 136 140 public static final int DEFAULT_RECENT_RELATIONS_NUMBER = 20; 141 /** 142 * The number of relations to use in the recent relations cache. 143 * @see #getRecentRelations() 144 */ 137 145 public static final IntegerProperty PROPERTY_RECENT_RELATIONS_NUMBER = new IntegerProperty("properties.last-closed-relations-size", 138 146 DEFAULT_RECENT_RELATIONS_NUMBER); 147 /** 148 * The extension that should be used when saving the OSM file. 149 */ 139 150 public static final StringProperty PROPERTY_SAVE_EXTENSION = new StringProperty("save.extension.osm", "osm"); 140 151 … … 160 171 * @param relation new entry for the list of recently closed relations 161 172 * @since 9668 173 * @see #PROPERTY_RECENT_RELATIONS_NUMBER 162 174 */ 163 175 public void setRecentRelation(Relation relation) { … … 223 235 } 224 236 237 /** 238 * A listener that counts the number of primitives it encounters 239 */ 225 240 public static final class DataCountVisitor extends AbstractVisitor { 241 /** 242 * Nodes that have been visited 243 */ 226 244 public int nodes; 245 /** 246 * Ways that have been visited 247 */ 227 248 public int ways; 249 /** 250 * Relations that have been visited 251 */ 228 252 public int relations; 253 /** 254 * Deleted nodes that have been visited 255 */ 229 256 public int deletedNodes; 257 /** 258 * Deleted ways that have been visited 259 */ 230 260 public int deletedWays; 261 /** 262 * Deleted relations that have been visited 263 */ 231 264 public int deletedRelations; 232 265 … … 256 289 } 257 290 291 /** 292 * A listener that gets notified of command queue (undo/redo) size changes. 293 */ 258 294 @FunctionalInterface 259 295 public interface CommandQueueListener { 296 /** 297 * Notifies the listener about the new queue size 298 * @param queueSize Undo stack size 299 * @param redoSize Redo stack size 300 */ 260 301 void commandChanged(int queueSize, int redoSize); 261 302 }
Note:
See TracChangeset
for help on using the changeset viewer.