Changeset 7204 in josm for trunk/src/org/openstreetmap/josm/gui/io/SaveLayerInfo.java
- Timestamp:
- 2014-06-01T14:07:18+02:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/io/SaveLayerInfo.java
r6084 r7204 16 16 /** the osm data layer */ 17 17 private OsmDataLayer layer; 18 private boolean doCheckSaveConditions; 18 19 private boolean doSaveToFile; 19 20 private boolean doUploadToServer; … … 23 24 24 25 /** 25 * 26 * Constructs a new {@code SaveLayerInfo}. 26 27 * @param layer the layer. Must not be null. 27 28 * @throws IllegalArgumentException thrown if layer is null … … 30 31 CheckParameterUtil.ensureParameterNotNull(layer, "layer"); 31 32 this.layer = layer; 33 this.doCheckSaveConditions = true; 32 34 this.doSaveToFile = layer.requiresSaveToFile(); 33 35 this.doUploadToServer = layer.requiresUploadToServer() && !layer.isUploadDiscouraged(); … … 42 44 public OsmDataLayer getLayer() { 43 45 return layer; 46 } 47 48 /** 49 * Replies true if preconditions should be checked before saving; false, otherwise 50 * 51 * @return true if preconditions should be checked before saving; false, otherwise 52 * @since 7204 53 */ 54 public boolean isDoCheckSaveConditions() { 55 return doCheckSaveConditions; 56 } 57 58 /** 59 * Sets whether preconditions should be checked before saving 60 * 61 * @param doCheckSaveConditions true to check save preconditions; false, to skip checking 62 * @since 7204 63 */ 64 public void setDoCheckSaveConditions(boolean doCheckSaveConditions) { 65 this.doCheckSaveConditions = doCheckSaveConditions; 44 66 } 45 67
Note:
See TracChangeset
for help on using the changeset viewer.