Changeset 33563 in osm for applications/editors/josm/plugins/ImportImagePlugin/src/org
- Timestamp:
- 2017-08-27T19:25:00+02:00 (7 years ago)
- Location:
- applications/editors/josm/plugins/ImportImagePlugin/src/org/openstreetmap/josm/plugins/ImportImagePlugin
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/ImportImagePlugin/src/org/openstreetmap/josm/plugins/ImportImagePlugin/ImportImagePlugin.java
r33372 r33563 17 17 import org.openstreetmap.josm.actions.ExtensionFileFilter; 18 18 import org.openstreetmap.josm.actions.JosmAction; 19 import org.openstreetmap.josm.gui.MainApplication; 19 20 import org.openstreetmap.josm.gui.MainMenu; 20 21 import org.openstreetmap.josm.plugins.Plugin; … … 84 85 loadFileAction.setEnabled(true); 85 86 if (Main.main != null) { 86 MainMenu.add(Main .main.menu.imagerySubMenu, loadFileAction);87 MainMenu.add(MainApplication.getMenu().imagerySubMenu, loadFileAction); 87 88 } 88 89 -
applications/editors/josm/plugins/ImportImagePlugin/src/org/openstreetmap/josm/plugins/ImportImagePlugin/LayerPropertiesDialog.java
r33028 r33563 34 34 import org.opengis.referencing.crs.CoordinateReferenceSystem; 35 35 import org.openstreetmap.josm.Main; 36 import org.openstreetmap.josm.tools.Logging; 36 37 37 38 /** … … 234 235 crsDescription = imageLayer.getBbox().getCoordinateReferenceSystem().getIdentifiers().iterator().next().toString(); 235 236 } catch (Exception e) { 236 Main.debug(e);237 Logging.debug(e); 237 238 } 238 239 crsValueLabel.setText(crsDescription + "(" + imageLayer.getBbox().getCoordinateReferenceSystem().getName().toString() + ")"); … … 297 298 crsDescription = imageLayer.getSourceRefSys().getIdentifiers().iterator().next().toString(); 298 299 } catch (Exception e) { 299 Main.debug(e);300 Logging.debug(e); 300 301 } 301 302 currentCRSValueLabel.setText(crsDescription); … … 539 540 540 541 } catch (IOException | FactoryException e2) { 541 Main.error(e2);542 Logging.error(e2); 542 543 } 543 544 } else { -
applications/editors/josm/plugins/ImportImagePlugin/src/org/openstreetmap/josm/plugins/ImportImagePlugin/LoadImageAction.java
r33028 r33563 14 14 import org.openstreetmap.josm.actions.JosmAction; 15 15 import org.openstreetmap.josm.data.osm.visitor.BoundingXYVisitor; 16 import org.openstreetmap.josm.gui.MainApplication; 16 17 import org.openstreetmap.josm.plugins.ImportImagePlugin.ImageLayer.LayerCreationCanceledException; 17 18 … … 57 58 58 59 // Add layer: 59 Main .getLayerManager().addLayer(layer);60 MainApplication.getLayerManager().addLayer(layer); 60 61 BoundingXYVisitor boundingXYVisitor = new BoundingXYVisitor(); 61 62 layer.visitBoundingBox(boundingXYVisitor); 62 Main .map.mapView.zoomTo(boundingXYVisitor);63 MainApplication.getMap().mapView.zoomTo(boundingXYVisitor); 63 64 } 64 65 }
Note:
See TracChangeset
for help on using the changeset viewer.