Ignore:
Timestamp:
2017-08-24T00:15:51+02:00 (9 years ago)
Author:
Don-vip
Message:

see #15182 - deprecate Main.map and Main.isDisplayingMapView(). Replacements: gui.MainApplication.getMap() / gui.MainApplication.isDisplayingMapView()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/dialogs/ConflictDialog.java

    r12620 r12630  
    5656import org.openstreetmap.josm.gui.HelpAwareOptionPane;
    5757import org.openstreetmap.josm.gui.HelpAwareOptionPane.ButtonSpec;
     58import org.openstreetmap.josm.gui.MainApplication;
    5859import org.openstreetmap.josm.gui.NavigatableComponent;
    5960import org.openstreetmap.josm.gui.OsmPrimitivRenderer;
     
    130131            lstConflicts.addMouseListener(new MouseEventHandler());
    131132        }
    132         addListSelectionListener(e -> Main.map.mapView.repaint());
     133        addListSelectionListener(e -> MainApplication.getMap().mapView.repaint());
    133134
    134135        SideButton btnResolve = new SideButton(actResolve);
     
    210211            lstConflicts.setSelectedIndex(index);
    211212        }
    212         Main.map.mapView.repaint();
     213        MainApplication.getMap().mapView.repaint();
    213214    }
    214215
     
    632633                );
    633634                unfurlDialog();
    634                 Main.map.repaint();
     635                MainApplication.getMap().repaint();
    635636            });
    636637        }
Note: See TracChangeset for help on using the changeset viewer.