Changeset 4221 in josm for trunk/src/org/openstreetmap/josm/gui/dialogs/RelationListDialog.java
- Timestamp:
- 2011-07-10T21:11:08+02:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/dialogs/RelationListDialog.java
r4191 r4221 14 14 import java.util.Collection; 15 15 import java.util.Collections; 16 import java.util.Comparator;17 16 import java.util.HashSet; 18 17 import java.util.Iterator; … … 431 430 public SelectAction(boolean add) { 432 431 putValue(SHORT_DESCRIPTION, add ? tr("Add the selected relations to the current selection") 433 : tr("Set the current selection to the list of selected relations"));432 : tr("Set the current selection to the list of selected relations")); 434 433 putValue(SMALL_ICON, ImageProvider.get("dialogs", "select")); 435 434 putValue(NAME, add ? tr("Select relation (add)") : tr("Select relation")); … … 446 445 selection.add(model.getRelation(i)); 447 446 } 448 if(add) 447 if(add) { 449 448 Main.map.mapView.getEditLayer().data.addSelected(selection); 450 else449 } else { 451 450 Main.map.mapView.getEditLayer().data.setSelected(selection); 451 } 452 452 } 453 453 … … 469 469 public SelectMembersAction(boolean add) { 470 470 putValue(SHORT_DESCRIPTION,add ? tr("Add the members of all selected relations to current selection") 471 : tr("Select the members of all selected relations"));471 : tr("Select the members of all selected relations")); 472 472 putValue(SMALL_ICON, ImageProvider.get("selectall")); 473 473 putValue(NAME, add ? tr("Select members (add)") : tr("Select members")); … … 483 483 members.addAll(r.getMemberPrimitives()); 484 484 } 485 if(add) 485 if(add) { 486 486 Main.map.mapView.getEditLayer().data.addSelected(members); 487 else487 } else { 488 488 Main.map.mapView.getEditLayer().data.setSelected(members); 489 } 489 490 } 490 491
Note:
See TracChangeset
for help on using the changeset viewer.