Ignore:
Timestamp:
2017-08-28T19:26:47+02:00 (2 years ago)
Author:
Don-vip
Message:

see #15182 - introduce Main.getEditDataSet to avoid unneeded GUI dependence in validator tests and tagging presets

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/osm/FilterModel.java

    r12656 r12691  
    9696     */
    9797    public void executeFilters() {
    98         DataSet ds = MainApplication.getLayerManager().getEditDataSet();
     98        DataSet ds = Main.main.getEditDataSet();
    9999        changed = false;
    100100        if (ds == null) {
     
    145145     */
    146146    public void executeFilters(Collection<? extends OsmPrimitive> primitives) {
    147         DataSet ds = MainApplication.getLayerManager().getEditDataSet();
     147        DataSet ds = Main.main.getEditDataSet();
    148148        if (ds == null)
    149149            return;
     
    207207     */
    208208    public void clearFilterFlags() {
    209         DataSet ds = MainApplication.getLayerManager().getEditDataSet();
     209        DataSet ds = Main.main.getEditDataSet();
    210210        if (ds != null) {
    211211            FilterWorker.clearFilterFlags(ds.allPrimitives());
Note: See TracChangeset for help on using the changeset viewer.