Ignore:
Timestamp:
2017-06-09T11:40:32+02:00 (4 years ago)
Author:
michael2402
Message:

CombineWayAction: Allow merging ways that are not in the current edit data set.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/command/ChangeRelationMemberRoleCommand.java

    r12288 r12356  
    99import javax.swing.Icon;
    1010
     11import org.openstreetmap.josm.data.osm.DataSet;
    1112import org.openstreetmap.josm.data.osm.OsmPrimitive;
    1213import org.openstreetmap.josm.data.osm.OsmPrimitiveType;
     
    4142     */
    4243    public ChangeRelationMemberRoleCommand(Relation relation, int position, String newRole) {
     44        this.relation = relation;
     45        this.position = position;
     46        this.newRole = newRole;
     47    }
     48
     49    /**
     50     * Constructs a new {@code ChangeRelationMemberRoleCommand}.
     51     * @param dataSet The data set the role is in
     52     * @param relation The relation to be changed
     53     * @param position Member position
     54     * @param newRole New role
     55     * @since 12355
     56     */
     57    public ChangeRelationMemberRoleCommand(DataSet dataSet, Relation relation, int position, String newRole) {
     58        super(dataSet);
    4359        this.relation = relation;
    4460        this.position = position;
Note: See TracChangeset for help on using the changeset viewer.