Changeset 33610 in osm for applications/editors
- Timestamp:
- 2017-09-16T00:41:01+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/geotools/src/org/openstreetmap/josm/plugins/geotools/GeoToolsPlugin.java
r33380 r33610 15 15 import org.opengis.referencing.FactoryException; 16 16 import org.opengis.referencing.NoSuchAuthorityCodeException; 17 import org.openstreetmap.josm.Main;18 17 import org.openstreetmap.josm.plugins.Plugin; 19 18 import org.openstreetmap.josm.plugins.PluginInformation; … … 48 47 OperationRegistry registry = JAI.getDefaultInstance().getOperationRegistry(); 49 48 if (registry == null) { 50 Main.error("geotools: error in JAI initialization. Cannot access default operation registry");49 Logging.error("geotools: error in JAI initialization. Cannot access default operation registry"); 51 50 } else { 52 51 // Update registry with com.sun.media.jai.imageioimpl.ImageReadWriteSpi (only class listed javax.media.jai.OperationRegistrySpi) … … 56 55 } catch (IllegalArgumentException e) { 57 56 // See #10652: IAE: A descriptor is already registered against the name "ImageRead" under registry mode "rendered" 58 Main.warn("geotools: error in JAI/ImageReadWriteSpi initialization: "+e.getMessage());57 Logging.warn("geotools: error in JAI/ImageReadWriteSpi initialization: "+e.getMessage()); 59 58 } 60 59 … … 62 61 try (InputStream in = GeoToolsPlugin.class.getResourceAsStream("/META-INF/registryFile.jai")) { 63 62 if (in == null) { 64 Main.error("geotools: error in JAI initialization. Cannot access META-INF/registryFile.jai");63 Logging.error("geotools: error in JAI initialization. Cannot access META-INF/registryFile.jai"); 65 64 } else { 66 65 registry.updateFromStream(in); 67 66 } 68 67 } catch (IOException | IllegalArgumentException e) { 69 Main.error("geotools: error in JAI/GeoTools initialization: "+e.getMessage());68 Logging.error("geotools: error in JAI/GeoTools initialization: "+e.getMessage()); 70 69 } 71 70 } … … 97 96 CRS.decode("EPSG:4326"); 98 97 } catch (NoSuchAuthorityCodeException e) { 99 Main.error("geotools: error in EPSG database initialization. NoSuchAuthorityCodeException: "+e.getMessage());98 Logging.error("geotools: error in EPSG database initialization. NoSuchAuthorityCodeException: "+e.getMessage()); 100 99 } catch (FactoryException e) { 101 Main.error("geotools: error in EPSG database initialization. FactoryException: "+e.getMessage());100 Logging.error("geotools: error in EPSG database initialization. FactoryException: "+e.getMessage()); 102 101 } 103 102 }
Note:
See TracChangeset
for help on using the changeset viewer.