Changeset 31750 in osm for applications/editors/josm
- Timestamp:
- 2015-11-16T00:14:27+01:00 (9 years ago)
- Location:
- applications/editors/josm/plugins/ImportImagePlugin/src/org/openstreetmap/josm/plugins/ImportImagePlugin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/ImportImagePlugin/src/org/openstreetmap/josm/plugins/ImportImagePlugin/ImportImageFileImporter.java
r31746 r31750 17 17 18 18 /** 19 * C alss to open georeferened image with standard file open dialog19 * Class to open georeferenced image with standard file open dialog 20 20 */ 21 21 public class ImportImageFileImporter extends FileImporter { … … 24 24 25 25 public ImportImageFileImporter() { 26 super(new ExtensionFileFilter("tiff,tif,jpg,jpeg,bmp,png", "jpg", "Georeferened image file [by ImportImage plugin] (*.jpg, *.jpeg, *.tif, *.tiff, *.png, *.bmp)")); 26 super(new ExtensionFileFilter("tiff,tif,jpg,jpeg,bmp,png", "jpg", 27 "Georeferenced image file [by ImportImage plugin] (*.jpg, *.jpeg, *.tif, *.tiff, *.png, *.bmp)")); 27 28 } 28 29 -
applications/editors/josm/plugins/ImportImagePlugin/src/org/openstreetmap/josm/plugins/ImportImagePlugin/LoadImageAction.java
r31746 r31750 1 1 package org.openstreetmap.josm.plugins.ImportImagePlugin; 2 2 3 import static org.openstreetmap.josm.tools.I18n.marktr; 3 4 import static org.openstreetmap.josm.tools.I18n.tr; … … 13 14 import org.openstreetmap.josm.data.osm.visitor.BoundingXYVisitor; 14 15 import org.openstreetmap.josm.plugins.ImportImagePlugin.ImageLayer.LayerCreationCanceledException; 15 16 16 17 17 /** … … 33 33 34 34 @Override 35 35 public void actionPerformed(ActionEvent arg0) { 36 36 37 37 // Choose a file … … 43 43 if (result == JFileChooser.APPROVE_OPTION) { 44 44 Main.pref.put("plugins.importimage.importpath", fc.getCurrentDirectory().getAbsolutePath()); 45 logger.info("File cho osen:" + fc.getSelectedFile());45 logger.info("File chosen:" + fc.getSelectedFile()); 46 46 try { 47 47 layer = new ImageLayer(fc.getSelectedFile()); … … 53 53 JOptionPane.showMessageDialog(null, marktr("Error while creating image layer: " + e.getCause())); 54 54 return; 55 56 55 } 57 56
Note:
See TracChangeset
for help on using the changeset viewer.