Changeset 32402 in osm for applications/editors/josm/plugins/ImportImagePlugin
- Timestamp:
- 2016-06-25T13:23:53+02:00 (9 years ago)
- Location:
- applications/editors/josm/plugins/ImportImagePlugin
- Files:
-
- 1 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/ImportImagePlugin/src/org/openstreetmap/josm/plugins/ImportImagePlugin/ImportImageFileImporter.java
r31750 r32402 58 58 59 59 // Add layer: 60 Main. main.addLayer(layer);60 Main.getLayerManager().addLayer(layer); 61 61 BoundingXYVisitor boundingXYVisitor = new BoundingXYVisitor(); 62 62 layer.visitBoundingBox(boundingXYVisitor); -
applications/editors/josm/plugins/ImportImagePlugin/src/org/openstreetmap/josm/plugins/ImportImagePlugin/ImportImagePlugin.java
r32287 r32402 19 19 import org.openstreetmap.josm.plugins.Plugin; 20 20 import org.openstreetmap.josm.plugins.PluginInformation; 21 import org.openstreetmap.josm.tools.Utils; 21 22 22 23 /** … … 123 124 File pluginDir = new File(PLUGIN_DIR); 124 125 if(!pluginDir.exists()){ 125 pluginDir .mkdir();126 Utils.mkDirs(pluginDir); 126 127 } 127 128 … … 129 130 File libDir = new File(PLUGINLIBRARIES_DIR); 130 131 if(!libDir.exists()){ 131 libDir.mkdir();132 Utils.mkDirs(libDir); 132 133 } 133 134 -
applications/editors/josm/plugins/ImportImagePlugin/src/org/openstreetmap/josm/plugins/ImportImagePlugin/LoadImageAction.java
r31750 r32402 56 56 57 57 // Add layer: 58 Main. main.addLayer(layer);58 Main.getLayerManager().addLayer(layer); 59 59 BoundingXYVisitor boundingXYVisitor = new BoundingXYVisitor(); 60 60 layer.visitBoundingBox(boundingXYVisitor); -
applications/editors/josm/plugins/ImportImagePlugin/test/unit/org/openstreetmap/josm/plugins/ImportImagePlugin/GeoTiffReaderTest.java
r32391 r32402 14 14 15 15 import org.geotools.coverage.grid.GridCoverage2D; 16 import org.junit.Before;17 16 import org.junit.Rule; 18 17 import org.junit.Test; … … 32 31 @Rule 33 32 public JOSMTestRules rules = new JOSMTestRules().preferences(); 34 35 @Before36 public void setUp() throws Exception {37 new ImportImagePlugin(null);38 }39 33 40 34 @Test
Note:
See TracChangeset
for help on using the changeset viewer.