Ignore:
Timestamp:
2011-07-10T21:11:08+02:00 (13 years ago)
Author:
jttt
Message:

Select new relation in relation list, save "apply only to selection" option in preset search dialog, make selected objects members of newly created relation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/dialogs/RelationListDialog.java

    r4191 r4221  
    1414import java.util.Collection;
    1515import java.util.Collections;
    16 import java.util.Comparator;
    1716import java.util.HashSet;
    1817import java.util.Iterator;
     
    431430        public SelectAction(boolean add) {
    432431            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"));
    434433            putValue(SMALL_ICON, ImageProvider.get("dialogs", "select"));
    435434            putValue(NAME, add ? tr("Select relation (add)") : tr("Select relation"));
     
    446445                selection.add(model.getRelation(i));
    447446            }
    448             if(add)
     447            if(add) {
    449448                Main.map.mapView.getEditLayer().data.addSelected(selection);
    450             else
     449            } else {
    451450                Main.map.mapView.getEditLayer().data.setSelected(selection);
     451            }
    452452        }
    453453
     
    469469        public SelectMembersAction(boolean add) {
    470470            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"));
    472472            putValue(SMALL_ICON, ImageProvider.get("selectall"));
    473473            putValue(NAME, add ? tr("Select members (add)") : tr("Select members"));
     
    483483                members.addAll(r.getMemberPrimitives());
    484484            }
    485             if(add)
     485            if(add) {
    486486                Main.map.mapView.getEditLayer().data.addSelected(members);
    487             else
     487            } else {
    488488                Main.map.mapView.getEditLayer().data.setSelected(members);
     489            }
    489490        }
    490491
Note: See TracChangeset for help on using the changeset viewer.