Changeset 35615 in osm for applications


Ignore:
Timestamp:
2020-10-25T11:19:49+01:00 (4 years ago)
Author:
GerdP
Message:

fix #18666 Extract node (alt+shift-J) Should not work outside downloaded area

  • don't disable it but show confirmation dialog similar to UnglueAction

Adds new I18n strings for the plugin, so size will grow.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/utilsplugin2/src/org/openstreetmap/josm/plugins/utilsplugin2/actions/ExtractPointAction.java

    r35579 r35615  
    5454            return;
    5555        }
     56        final boolean ok = checkAndConfirmOutlyingOperation("extnode",
     57                tr("Extract node confirmation"),
     58                tr("You are about to extract a node which can have other referrers not yet downloaded."
     59                        + "<br>"
     60                        + "This can cause problems because other objects (that you do not see) might use them."
     61                        + "<br>"
     62                        + "Do you really want to extract?"),
     63                "", // incomplete node should not happen
     64                selectedNodes, null);
     65        if (!ok) {
     66            return;
     67        }
     68
    5669        Node nd = selectedNodes.iterator().next();
    5770        Node ndCopy = new Node(nd.getCoor());
Note: See TracChangeset for help on using the changeset viewer.