Ignore:
Timestamp:
2017-09-12T16:50:56+02:00 (7 years ago)
Author:
Don-vip
Message:

see #15229 - see #15182 - see #13036 - convert SplitWayAction to SplitWayCommand to remove dependence of DeleteCommand on actions package

File:
1 edited

Legend:

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

    r12749 r12828  
    2525import org.openstreetmap.josm.Main;
    2626import org.openstreetmap.josm.actions.ReverseWayAction.ReverseWayResult;
    27 import org.openstreetmap.josm.actions.SplitWayAction.SplitWayResult;
    2827import org.openstreetmap.josm.command.AddCommand;
    2928import org.openstreetmap.josm.command.ChangeCommand;
     
    3130import org.openstreetmap.josm.command.DeleteCommand;
    3231import org.openstreetmap.josm.command.SequenceCommand;
     32import org.openstreetmap.josm.command.SplitWayCommand;
    3333import org.openstreetmap.josm.data.UndoRedoHandler;
    3434import org.openstreetmap.josm.data.coor.EastNorth;
     
    10191019
    10201020        if (chunks.size() > 1) {
    1021             SplitWayResult split = SplitWayAction.splitWay(way, chunks,
    1022                     Collections.<OsmPrimitive>emptyList(), SplitWayAction.Strategy.keepFirstChunk());
     1021            SplitWayCommand split = SplitWayCommand.splitWay(way, chunks,
     1022                    Collections.<OsmPrimitive>emptyList(), SplitWayCommand.Strategy.keepFirstChunk());
    10231023
    10241024            if (split != null) {
    10251025                //execute the command, we need the results
    1026                 cmds.add(split.getCommand());
     1026                cmds.add(split);
    10271027                commitCommands(marktr("Split ways into fragments"));
    10281028
Note: See TracChangeset for help on using the changeset viewer.