Ignore:
Timestamp:
2016-11-12T14:52:32+01:00 (7 years ago)
Author:
Don-vip
Message:

see #10387 - refactor various actions and commands so they can be used without data layer

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/SelectByInternalPointAction.java

    r10448 r11240  
    3030
    3131    /**
    32      * Returns the surrounding polygons/multipolygons
    33      * ordered by their area size (from small to large)
     32     * Returns the surrounding polygons/multipolygons ordered by their area size (from small to large)
    3433     * which contain the internal point.
    3534     *
     
    3837     */
    3938    public static Collection<OsmPrimitive> getSurroundingObjects(EastNorth internalPoint) {
    40         final DataSet ds = Main.getLayerManager().getEditDataSet();
     39        return getSurroundingObjects(Main.getLayerManager().getEditDataSet(), internalPoint);
     40    }
     41
     42    /**
     43     * Returns the surrounding polygons/multipolygons ordered by their area size (from small to large)
     44     * which contain the internal point.
     45     *
     46     * @param ds the data set
     47     * @param internalPoint the internal point.
     48     * @return the surrounding polygons/multipolygons
     49     * @since 11240
     50     */
     51    public static Collection<OsmPrimitive> getSurroundingObjects(DataSet ds, EastNorth internalPoint) {
    4152        if (ds == null) {
    4253            return Collections.emptySet();
Note: See TracChangeset for help on using the changeset viewer.