Changeset 28813 in osm for applications
- Timestamp:
- 2012-10-15T23:04:55+02:00 (12 years ago)
- Location:
- applications/editors/josm/plugins/reltoolbox/src/relcontext/actions
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/reltoolbox/src/relcontext/actions/DeleteChosenRelationAction.java
r25711 r28813 3 3 import static org.openstreetmap.josm.tools.I18n.tr; 4 4 import java.awt.event.ActionEvent; 5 import java.util.Collections; 5 6 import javax.swing.AbstractAction; 6 7 import org.openstreetmap.josm.Main; 8 import org.openstreetmap.josm.command.Command; 7 9 import org.openstreetmap.josm.command.DeleteCommand; 8 10 import org.openstreetmap.josm.data.osm.Relation; … … 25 27 Relation r = rel.get(); 26 28 rel.clear(); 27 Main.main.undoRedo.add(new DeleteCommand(r)); 29 Command c = DeleteCommand.delete(Main.main.getEditLayer(), Collections.singleton(r), true, true); 30 if( c != null ) 31 Main.main.undoRedo.add(c); 28 32 } 29 33 -
applications/editors/josm/plugins/reltoolbox/src/relcontext/actions/ReconstructPolygonAction.java
r26882 r28813 64 64 List<Way> newSelection = new ArrayList<Way>(); 65 65 List<Command> commands = new ArrayList<Command>(); 66 commands.add(new DeleteCommand(r)); 66 Command c = DeleteCommand.delete(Main.main.getEditLayer(), Collections.singleton(r), true, true); 67 if( c == null ) 68 return; 69 commands.add(c); 67 70 68 71 for( JoinedPolygon p : mpc.outerWays ) {
Note:
See TracChangeset
for help on using the changeset viewer.