Ignore:
Timestamp:
2017-08-24T22:53:50+02:00 (2 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/gui/util/HighlightHelper.java

    r11038 r12636  
    88import java.util.Set;
    99
    10 import org.openstreetmap.josm.Main;
    1110import org.openstreetmap.josm.data.osm.DataSet;
    1211import org.openstreetmap.josm.data.osm.OsmPrimitive;
    1312import org.openstreetmap.josm.data.osm.Relation;
     13import org.openstreetmap.josm.gui.MainApplication;
    1414
    1515/**
     
    122122     */
    123123    public void findAllHighlighted() {
    124         DataSet ds = Main.getLayerManager().getEditDataSet();
     124        DataSet ds = MainApplication.getLayerManager().getEditDataSet();
    125125        if (ds != null) {
    126126            highlightedPrimitives.addAll(ds.allNonDeletedPrimitives());
     
    132132     */
    133133    public static void clearAllHighlighted() {
    134         DataSet ds = Main.getLayerManager().getEditDataSet();
     134        DataSet ds = MainApplication.getLayerManager().getEditDataSet();
    135135        if (ds != null) {
    136136            for (OsmPrimitive p: ds.allNonDeletedPrimitives()) {
Note: See TracChangeset for help on using the changeset viewer.