Ticket #19121: 19121.patch
| File 19121.patch, 4.5 KB (added by , 6 years ago) |
|---|
-
src/org/openstreetmap/josm/actions/DeleteAction.java
95 95 Collection<? extends OsmPrimitive> ignore) { 96 96 return checkAndConfirmOutlyingOperation("delete", 97 97 tr("Delete confirmation"), 98 tr("You are about to delete nodes outside of thearea you have downloaded."98 tr("You are about to delete nodes not inside any area you have downloaded." 99 99 + "<br>" 100 100 + "This can cause problems because other objects (that you do not see) might use them." 101 101 + "<br>" -
src/org/openstreetmap/josm/actions/JoinAreasAction.java
519 519 520 520 // TODO: Only display this warning when nodes outside dataSourceArea are deleted 521 521 boolean ok = checkAndConfirmOutlyingOperation("joinarea", tr("Join area confirmation"), 522 trn("The selected way has nodes outside of the downloaded data region.",523 "The selected ways have nodes outside of the downloaded data region.",522 trn("The selected way has nodes not inside any area you have downloaded.", 523 "The selected ways have nodes not inside any area you have downloaded.", 524 524 ways.size()) + "<br/>" 525 525 + tr("This can lead to nodes being deleted accidentally.") + "<br/>" 526 526 + tr("Are you really sure to continue?") -
src/org/openstreetmap/josm/actions/JosmAction.java
495 495 /** 496 496 * Check whether user is about to operate on data outside of the download area. 497 497 * Request confirmation if he is. 498 * Also handles the case that there is no download area. 498 499 * 499 500 * @param operation the operation name which is used for setting some preferences 500 501 * @param dialogTitle the title of the dialog being displayed 501 * @param outsideDialogMessage the message text to be displayed when data is outside of the download area 502 * @param outsideDialogMessage the message text to be displayed when data is outside of the download area or no download area exists 502 503 * @param incompleteDialogMessage the message text to be displayed when data is incomplete 503 504 * @param primitives the primitives to operate on 504 505 * @param ignore {@code null} or a primitive to be ignored -
src/org/openstreetmap/josm/actions/UnGlueAction.java
503 503 primitives.add(selectedNode); 504 504 final boolean ok = checkAndConfirmOutlyingOperation("unglue", 505 505 tr("Unglue confirmation"), 506 tr("You are about to unglue nodes outside of thearea you have downloaded."506 tr("You are about to unglue nodes not inside any area you have downloaded." 507 507 + "<br>" 508 508 + "This can cause problems because other objects (that you do not see) might use them." 509 509 + "<br>" -
src/org/openstreetmap/josm/command/Command.java
228 228 if (osm.isIncomplete()) { 229 229 res |= IS_INCOMPLETE; 230 230 } else if (osm.isOutsideDownloadArea() 231 && (ignore == null || !ignore.contains(osm))) { 231 || (!osm.isNew() && osm.getDataSet() != null && osm.getDataSet().getDataSourceBounds().isEmpty()) 232 && (ignore == null || !ignore.contains(osm))) { 232 233 res |= IS_OUTSIDE; 233 234 } 234 235 }
