Ignore:
Timestamp:
2017-08-27T19:21:21+02:00 (7 years ago)
Author:
donvip
Message:

fix warnings

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/ImageLayer.java

    r33372 r33562  
    3434import org.openstreetmap.josm.data.osm.visitor.BoundingXYVisitor;
    3535import org.openstreetmap.josm.gui.ExtendedDialog;
     36import org.openstreetmap.josm.gui.MainApplication;
    3637import org.openstreetmap.josm.gui.MapView;
    3738import org.openstreetmap.josm.gui.dialogs.LayerListDialog;
     
    299300        BoundingXYVisitor boundingXYVisitor = new BoundingXYVisitor();
    300301        visitBoundingBox(boundingXYVisitor);
    301         Main.map.mapView.zoomTo(boundingXYVisitor);
     302        MainApplication.getMap().mapView.zoomTo(boundingXYVisitor);
    302303    }
    303304
  • applications/editors/josm/plugins/ImportImagePlugin/src/org/openstreetmap/josm/plugins/ImportImagePlugin/ImportImageFileImporter.java

    r33557 r33562  
    1212import org.openstreetmap.josm.actions.ExtensionFileFilter;
    1313import org.openstreetmap.josm.data.osm.visitor.BoundingXYVisitor;
     14import org.openstreetmap.josm.gui.MainApplication;
    1415import org.openstreetmap.josm.gui.io.importexport.FileImporter;
    1516import org.openstreetmap.josm.gui.progress.ProgressMonitor;
     
    5051                layer = new ImageLayer(file);
    5152            } catch (LayerCreationCanceledException e) {
    52             // if user decides that layer should not be created just return.
     53                // if user decides that layer should not be created just return.
    5354                continue;
    5455            } catch (Exception e) {
     
    5960
    6061            // Add layer:
    61             Main.getLayerManager().addLayer(layer);
     62            MainApplication.getLayerManager().addLayer(layer);
    6263            BoundingXYVisitor boundingXYVisitor = new BoundingXYVisitor();
    6364            layer.visitBoundingBox(boundingXYVisitor);
    64             Main.map.mapView.zoomTo(boundingXYVisitor);
     65            MainApplication.getMap().mapView.zoomTo(boundingXYVisitor);
    6566        }
    6667    }
Note: See TracChangeset for help on using the changeset viewer.