Changeset 13952 in josm for trunk/src


Ignore:
Timestamp:
2018-06-18T19:39:07+02:00 (6 years ago)
Author:
Don-vip
Message:

use OsmData in TaggingPresetSearchPrimitiveDialog

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/tagging/presets/TaggingPresetSearchPrimitiveDialog.java

    r13926 r13952  
    1010import org.openstreetmap.josm.Main;
    1111import org.openstreetmap.josm.actions.JosmAction;
    12 import org.openstreetmap.josm.data.osm.DataSet;
     12import org.openstreetmap.josm.data.osm.OsmData;
    1313import org.openstreetmap.josm.gui.ExtendedDialog;
    1414import org.openstreetmap.josm.gui.MainApplication;
     
    8686            TaggingPreset preset = selector.getSelectedPresetAndUpdateClassification();
    8787            if (preset != null) {
    88                 DataSet ds = Main.main.getActiveDataSet();
     88                OsmData<?, ?, ?, ?> ds = MainApplication.getLayerManager().getActiveData();
    8989                ds.setSelected(new HashSet<>(ds.getPrimitives(preset)));
    9090            }
Note: See TracChangeset for help on using the changeset viewer.