Changeset 25698 in osm
- Timestamp:
- 2011-03-24T21:57:35+01:00 (14 years ago)
- Location:
- applications/editors/josm/plugins/relcontext/src/relcontext
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/relcontext/src/relcontext/RelContextDialog.java
r25695 r25698 30 30 31 31 import org.openstreetmap.josm.Main; 32 import org.openstreetmap.josm.command.ChangeCommand; 32 33 import org.openstreetmap.josm.data.SelectionChangedListener; 33 34 import org.openstreetmap.josm.data.osm.Relation; … … 519 520 if( selected.contains(m.getMember()) ) { 520 521 if( !role.equals(m.getRole()) ) { 522 r.setMember(i, new RelationMember(role, m.getMember())); 521 523 commands.add(new ChangeRelationMemberRoleCommand(r, i, role)); 522 524 } 523 525 } 524 526 } 525 if( !commands.isEmpty() ) 526 Main.main.undoRedo.add(new SequenceCommand(tr("Change relation member roles to {0}", role), commands)); 527 if( !commands.isEmpty() ) { 528 Main.main.undoRedo.add(new ChangeCommand(chosenRelation.get(), r)); 529 // Main.main.undoRedo.add(new SequenceCommand(tr("Change relation member roles to {0}", role), commands)); 530 } 527 531 } 528 532 } -
applications/editors/josm/plugins/relcontext/src/relcontext/actions/SortAndFixAction.java
r25692 r25698 20 20 // putValue(Action.NAME, "AZ"); 21 21 putValue(Action.SMALL_ICON, ImageProvider.get("data", "warning")); 22 putValue(Action.SHORT_DESCRIPTION, tr(" Sort members and fix their roles"));22 putValue(Action.SHORT_DESCRIPTION, tr("Fix roles of the chosen relation members")); 23 23 this.rel = rel; 24 24 rel.addChosenRelationListener(this);
Note:
See TracChangeset
for help on using the changeset viewer.