Changeset 33530 in osm for applications/editors/josm/plugins/reltoolbox/src/relcontext/actions/DeleteChosenRelationAction.java
- Timestamp:
- 2017-08-26T02:16:05+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/reltoolbox/src/relcontext/actions/DeleteChosenRelationAction.java
r32398 r33530 9 9 import javax.swing.AbstractAction; 10 10 11 import org.openstreetmap.josm.Main;12 11 import org.openstreetmap.josm.command.Command; 13 12 import org.openstreetmap.josm.command.DeleteCommand; 14 13 import org.openstreetmap.josm.data.osm.Relation; 14 import org.openstreetmap.josm.gui.MainApplication; 15 15 import org.openstreetmap.josm.tools.ImageProvider; 16 16 … … 33 33 Relation r = rel.get(); 34 34 rel.clear(); 35 Command c = DeleteCommand.delete(Main.getLayerManager().getEditLayer(), Collections.singleton(r), true, true); 35 Command c = DeleteCommand.delete(MainApplication.getLayerManager().getEditLayer(), Collections.singleton(r), true, true); 36 36 if (c != null) { 37 Main .main.undoRedo.add(c);37 MainApplication.undoRedo.add(c); 38 38 } 39 39 }
Note:
See TracChangeset
for help on using the changeset viewer.
