- Timestamp:
- 2016-02-01T21:57:56+01:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/dialogs/relation/actions/CopyMembersAction.java
r9665 r9710 3 3 4 4 import java.awt.event.ActionEvent; 5 import java.util.HashSet; 6 import java.util.Set; 5 import java.util.Collection; 7 6 8 7 import org.openstreetmap.josm.actions.CopyAction; 9 8 import org.openstreetmap.josm.data.osm.OsmPrimitive; 10 import org.openstreetmap.josm. data.osm.RelationMember;9 import org.openstreetmap.josm.gui.dialogs.relation.IRelationEditor; 11 10 import org.openstreetmap.josm.gui.dialogs.relation.MemberTableModel; 12 import org.openstreetmap.josm.gui.dialogs.relation.IRelationEditor;13 11 import org.openstreetmap.josm.gui.layer.OsmDataLayer; 14 12 … … 31 29 @Override 32 30 public void actionPerformed(ActionEvent e) { 33 Set<OsmPrimitive> primitives = new HashSet<>(); 34 for (RelationMember rm: memberTableModel.getSelectedMembers()) { 35 primitives.add(rm.getMember()); 36 } 31 final Collection<OsmPrimitive> primitives = memberTableModel.getSelectedChildPrimitives(); 37 32 if (!primitives.isEmpty()) { 38 33 CopyAction.copy(layer, primitives);
Note:
See TracChangeset
for help on using the changeset viewer.