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