Class FilePaster
- java.lang.Object
-
- org.openstreetmap.josm.gui.datatransfer.importers.AbstractOsmDataPaster
-
- org.openstreetmap.josm.gui.datatransfer.importers.FilePaster
-
public final class FilePaster extends AbstractOsmDataPaster
This transfer support allows us to import a file that is dropped / copied on to the map.- Since:
- 10604
-
-
Field Summary
-
Fields inherited from class org.openstreetmap.josm.gui.datatransfer.importers.AbstractOsmDataPaster
df
-
-
Constructor Summary
Constructors Constructor Description FilePaster()
Create a newFilePaster
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
importData(javax.swing.TransferHandler.TransferSupport support, OsmDataLayer layer, EastNorth pasteAt)
Attempts to import the given transfer data.-
Methods inherited from class org.openstreetmap.josm.gui.datatransfer.importers.AbstractOsmDataPaster
importTagsOn, supports, supports
-
-
-
-
Constructor Detail
-
FilePaster
public FilePaster()
Create a newFilePaster
-
-
Method Detail
-
importData
public boolean importData(javax.swing.TransferHandler.TransferSupport support, OsmDataLayer layer, EastNorth pasteAt) throws java.awt.datatransfer.UnsupportedFlavorException, java.io.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:
java.awt.datatransfer.UnsupportedFlavorException
- if the requested data flavor is not supportedjava.io.IOException
- if an I/O error occurs
-
-