Class OsmLinkPaster
- java.lang.Object
-
- org.openstreetmap.josm.gui.datatransfer.importers.AbstractOsmDataPaster
-
- org.openstreetmap.josm.gui.datatransfer.importers.OsmLinkPaster
-
public class OsmLinkPaster extends AbstractOsmDataPaster
Handles the paste / drop of an OSM address.e.g. http://www.openstreetmap.org/node/123 downloads node 123
- Since:
- 10881
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
OsmLinkPaster.NoWarnOpenLocationAction
-
Field Summary
Fields Modifier and Type Field Description private static String
OSM_SERVER
-
Fields inherited from class org.openstreetmap.josm.gui.datatransfer.importers.AbstractOsmDataPaster
df
-
-
Constructor Summary
Constructors Constructor Description OsmLinkPaster()
Create a new Osm address paster
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
importData(TransferHandler.TransferSupport support, OsmDataLayer layer, EastNorth pasteAt)
Attempts to import the given transfer data.(package private) static LatLon
parseLatLon(String transferData)
-
Methods inherited from class org.openstreetmap.josm.gui.datatransfer.importers.AbstractOsmDataPaster
importTagsOn, supports, supports
-
-
-
-
Field Detail
-
OSM_SERVER
private static final String OSM_SERVER
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
OsmLinkPaster
public OsmLinkPaster()
Create a new Osm address paster
-
-
Method Detail
-
importData
public boolean importData(TransferHandler.TransferSupport support, OsmDataLayer layer, EastNorth pasteAt) throws UnsupportedFlavorException, IOException
Description copied from class:AbstractOsmDataPaster
Attempts to import the given transfer data.- Specified by:
importData
in classAbstractOsmDataPaster
- Parameters:
support
- The transfer support to import from.layer
- The layer to paste at. May be null.pasteAt
- The position to paste at.- Returns:
true
if the import was successful.- Throws:
UnsupportedFlavorException
- if the requested data flavor is not supportedIOException
- if an I/O error occurs
-
parseLatLon
static LatLon parseLatLon(String transferData)
-
-