Class FilePaster
java.lang.Object
org.openstreetmap.josm.gui.datatransfer.importers.AbstractOsmDataPaster
org.openstreetmap.josm.gui.datatransfer.importers.FilePaster
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 -
Method Summary
Modifier and TypeMethodDescriptionbooleanimportData(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 Details
-
FilePaster
public FilePaster()Create a newFilePaster
-
-
Method Details
-
importData
public boolean importData(TransferHandler.TransferSupport support, OsmDataLayer layer, EastNorth pasteAt) throws UnsupportedFlavorException, IOException Description copied from class:AbstractOsmDataPasterAttempts to import the given transfer data.- Specified by:
importDatain 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:
trueif the import was successful.- Throws:
UnsupportedFlavorException- if the requested data flavor is not supportedIOException- if an I/O error occurs
-