Changeset 2181 in josm for trunk/src/org/openstreetmap/josm/actions
- Timestamp:
- 2009-09-22T15:34:19+02:00 (16 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/actions
- Files:
-
- 4 edited
-
GpxExportAction.java (modified) (1 diff)
-
MergeNodesAction.java (modified) (2 diffs)
-
UploadAction.java (modified) (2 diffs)
-
mapmode/DeleteAction.java (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/GpxExportAction.java
r2163 r2181 68 68 public void export(Layer layer) { 69 69 if (layer == null) 70 throw new IllegalArgumentException(tr(" parameter ''{0}'' must not be null", "layer"));70 throw new IllegalArgumentException(tr("Parameter ''{0}'' must not be null.", "layer")); 71 71 if (! (layer instanceof OsmDataLayer) && ! (layer instanceof GpxLayer)) 72 throw new IllegalArgumentException(tr(" expected instance of OsmDataLayer or GpxLayer. Got ''{0}''.", layer.getClass().getName()));72 throw new IllegalArgumentException(tr("Expected instance of OsmDataLayer or GpxLayer. Got ''{0}''.", layer.getClass().getName())); 73 73 74 74 File file = createAndOpenSaveFileChooser(tr("Export GPX file"), ".gpx"); -
trunk/src/org/openstreetmap/josm/actions/MergeNodesAction.java
r2113 r2181 138 138 public static Command mergeNodes(OsmDataLayer layer, Collection<Node> nodes, Node targetNode) throws IllegalArgumentException{ 139 139 if (layer == null) 140 throw new IllegalArgumentException(tr(" parameter ''{0}'' must not be null", "nodes"));140 throw new IllegalArgumentException(tr("Parameter ''{0}'' must not be null.", "nodes")); 141 141 if (targetNode == null) 142 throw new IllegalArgumentException(tr(" parameter ''{0}'' must not be null", "targetNode"));142 throw new IllegalArgumentException(tr("Parameter ''{0}'' must not be null.", "targetNode")); 143 143 144 144 if (nodes == null) … … 220 220 public static Command mergeNodes(OsmDataLayer layer, BackreferencedDataSet backreferences, Collection<Node> nodes, Node targetNode) { 221 221 if (layer == null) 222 throw new IllegalArgumentException(tr(" parameter ''{0}'' must not be null", "nodes"));222 throw new IllegalArgumentException(tr("Parameter ''{0}'' must not be null.", "nodes")); 223 223 if (targetNode == null) 224 throw new IllegalArgumentException(tr(" parameter ''{0}'' must not be null", "targetNode"));224 throw new IllegalArgumentException(tr("Parameter ''{0}'' must not be null.", "targetNode")); 225 225 if (nodes == null) 226 226 return null; -
trunk/src/org/openstreetmap/josm/actions/UploadAction.java
r2175 r2181 251 251 default: 252 252 // should not happen 253 throw new IllegalStateException(tr(" unexpected return value. Got {0}", ret));253 throw new IllegalStateException(tr("Unexpected return value. Got {0}.", ret)); 254 254 } 255 255 } … … 290 290 default: 291 291 // should not happen 292 throw new IllegalStateException(tr(" unexpected return value. Got {0}", ret));292 throw new IllegalStateException(tr("Unexpected return value. Got {0}.", ret)); 293 293 } 294 294 } -
trunk/src/org/openstreetmap/josm/actions/mapmode/DeleteAction.java
r2026 r2181 291 291 public static void deleteRelation(OsmDataLayer layer, Relation toDelete) { 292 292 if (layer == null) 293 throw new IllegalArgumentException(tr(" parameter ''{0}'' must not be null", "layer"));293 throw new IllegalArgumentException(tr("Parameter ''{0}'' must not be null.", "layer")); 294 294 if (toDelete == null) 295 throw new IllegalArgumentException(tr(" parameter ''{0}'' must not be null", "toDelete"));295 throw new IllegalArgumentException(tr("Parameter ''{0}'' must not be null.", "toDelete")); 296 296 297 297 Command cmd = DeleteCommand.delete(layer, Collections.singleton(toDelete));
Note:
See TracChangeset
for help on using the changeset viewer.
