Ignore:
Timestamp:
2017-08-26T02:16:05+02:00 (7 years ago)
Author:
donvip
Message:

update to JOSM 12663

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/reltoolbox/src/relcontext/actions/ReconstructPolygonAction.java

    r33265 r33530  
    2424import org.openstreetmap.josm.command.SequenceCommand;
    2525import org.openstreetmap.josm.data.coor.EastNorth;
     26import org.openstreetmap.josm.data.osm.DefaultNameFormatter;
    2627import org.openstreetmap.josm.data.osm.MultipolygonBuilder;
    2728import org.openstreetmap.josm.data.osm.MultipolygonBuilder.JoinedPolygon;
     
    3031import org.openstreetmap.josm.data.osm.RelationMember;
    3132import org.openstreetmap.josm.data.osm.Way;
    32 import org.openstreetmap.josm.gui.DefaultNameFormatter;
     33import org.openstreetmap.josm.gui.MainApplication;
    3334import org.openstreetmap.josm.tools.ImageProvider;
    3435
     
    8485        List<OsmPrimitive> newSelection = new ArrayList<>();
    8586        List<Command> commands = new ArrayList<>();
    86         Command relationDeleteCommand = DeleteCommand.delete(Main.getLayerManager().getEditLayer(), Collections.singleton(r), true, true);
     87        Command relationDeleteCommand = DeleteCommand.delete(
     88                MainApplication.getLayerManager().getEditLayer(), Collections.singleton(r), true, true);
    8789        if (relationDeleteCommand == null)
    8890            return;
     
    195197        }
    196198
    197         Main.main.undoRedo.add(new SequenceCommand(tr("Reconstruct polygons from relation {0}",
     199        MainApplication.undoRedo.add(new SequenceCommand(tr("Reconstruct polygons from relation {0}",
    198200                r.getDisplayName(DefaultNameFormatter.getInstance())), commands));
    199         Main.getLayerManager().getEditDataSet().setSelected(newSelection);
     201        MainApplication.getLayerManager().getEditDataSet().setSelected(newSelection);
    200202    }
    201203
Note: See TracChangeset for help on using the changeset viewer.