Ignore:
Timestamp:
2017-09-04T00:50:22+02:00 (2 years ago)
Author:
Don-vip
Message:

see #13036 - see #15229 - see #15182 - make Commands depends only on a DataSet, not a Layer. This removes a lot of GUI dependencies

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/validation/Test.java

    r12667 r12718  
    2323import org.openstreetmap.josm.data.osm.search.SearchCompiler.NotOutsideDataSourceArea;
    2424import org.openstreetmap.josm.data.osm.visitor.AbstractVisitor;
    25 import org.openstreetmap.josm.gui.MainApplication;
    2625import org.openstreetmap.josm.gui.progress.NullProgressMonitor;
    2726import org.openstreetmap.josm.gui.progress.ProgressMonitor;
     
    331330        }
    332331        if (!primitivesToDelete.isEmpty()) {
    333             return DeleteCommand.delete(MainApplication.getLayerManager().getEditLayer(), primitivesToDelete);
     332            return DeleteCommand.delete(primitivesToDelete);
    334333        } else {
    335334            return null;
Note: See TracChangeset for help on using the changeset viewer.