Changeset 33530 in osm for applications/editors/josm/plugins/reltoolbox/src/relcontext/actions/ReconstructPolygonAction.java
- Timestamp:
- 2017-08-26T02:16:05+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/reltoolbox/src/relcontext/actions/ReconstructPolygonAction.java
r33265 r33530 24 24 import org.openstreetmap.josm.command.SequenceCommand; 25 25 import org.openstreetmap.josm.data.coor.EastNorth; 26 import org.openstreetmap.josm.data.osm.DefaultNameFormatter; 26 27 import org.openstreetmap.josm.data.osm.MultipolygonBuilder; 27 28 import org.openstreetmap.josm.data.osm.MultipolygonBuilder.JoinedPolygon; … … 30 31 import org.openstreetmap.josm.data.osm.RelationMember; 31 32 import org.openstreetmap.josm.data.osm.Way; 32 import org.openstreetmap.josm.gui. DefaultNameFormatter;33 import org.openstreetmap.josm.gui.MainApplication; 33 34 import org.openstreetmap.josm.tools.ImageProvider; 34 35 … … 84 85 List<OsmPrimitive> newSelection = new ArrayList<>(); 85 86 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); 87 89 if (relationDeleteCommand == null) 88 90 return; … … 195 197 } 196 198 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}", 198 200 r.getDisplayName(DefaultNameFormatter.getInstance())), commands)); 199 Main .getLayerManager().getEditDataSet().setSelected(newSelection);201 MainApplication.getLayerManager().getEditDataSet().setSelected(newSelection); 200 202 } 201 203
Note:
See TracChangeset
for help on using the changeset viewer.