Ignore:
Timestamp:
2017-08-24T00:15:51+02:00 (7 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/data/osm/FilterMatcher.java

    r12383 r12630  
    66import java.util.List;
    77
    8 import org.openstreetmap.josm.Main;
    98import org.openstreetmap.josm.actions.search.SearchAction.SearchMode;
    109import org.openstreetmap.josm.actions.search.SearchCompiler;
     
    1211import org.openstreetmap.josm.actions.search.SearchCompiler.Not;
    1312import org.openstreetmap.josm.actions.search.SearchCompiler.ParseError;
     13import org.openstreetmap.josm.gui.MainApplication;
     14import org.openstreetmap.josm.gui.MapFrame;
    1415import org.openstreetmap.josm.tools.SubclassFilteredCollection;
    1516
     
    224225
    225226    private static FilterType test(List<FilterInfo> filters, OsmPrimitive primitive, boolean hidden) {
    226 
     227        MapFrame map = MainApplication.getMap();
    227228        if (primitive.isIncomplete() ||
    228                 (Main.map != null && Main.map.mapMode != null && Main.map.mapMode.getPreservedPrimitives().contains(primitive)))
     229                (map != null && map.mapMode != null && map.mapMode.getPreservedPrimitives().contains(primitive)))
    229230            return FilterType.NOT_FILTERED;
    230231
Note: See TracChangeset for help on using the changeset viewer.