Ignore:
Timestamp:
2017-08-24T22:53:50+02:00 (7 years ago)
Author:
Don-vip
Message:

see #15182 - deprecate Main.getLayerManager(). Replacement: gui.MainApplication.getLayerManager()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/AutoScaleAction.java

    r12630 r12636  
    7171    /**
    7272     * Zooms the current map view to the currently selected primitives.
    73      * Does nothing if there either isn't a current map view or if there isn't a current data
    74      * layer.
     73     * Does nothing if there either isn't a current map view or if there isn't a current data layer.
    7574     *
    7675     */
    7776    public static void zoomToSelection() {
    78         DataSet dataSet = Main.getLayerManager().getEditDataSet();
     77        DataSet dataSet = MainApplication.getLayerManager().getEditDataSet();
    7978        if (dataSet == null) {
    8079            return;
     
    225224     */
    226225    protected Layer getFirstSelectedLayer() {
    227         if (Main.getLayerManager().getActiveLayer() == null) {
     226        if (getLayerManager().getActiveLayer() == null) {
    228227            return null;
    229228        }
     
    268267
    269268    private static BoundingXYVisitor modeData(BoundingXYVisitor v) {
    270         for (Layer l : Main.getLayerManager().getLayers()) {
     269        for (Layer l : MainApplication.getLayerManager().getLayers()) {
    271270            l.visitBoundingBox(v);
    272271        }
     
    337336                } else {
    338337                    lastZoomArea = -1;
    339                     Area sourceArea = Main.getLayerManager().getEditDataSet().getDataSourceArea();
     338                    Area sourceArea = getLayerManager().getEditDataSet().getDataSourceArea();
    340339                    if (sourceArea != null) {
    341340                        v.visit(new Bounds(sourceArea.getBounds2D()));
Note: See TracChangeset for help on using the changeset viewer.