Changeset 6745 in josm for trunk/src


Ignore:
Timestamp:
2014-01-20T15:44:39+01:00 (11 years ago)
Author:
akks
Message:

fix #9591: select selected members when opening relation editor

File:
1 edited

Legend:

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

    r6742 r6745  
    5353import org.openstreetmap.josm.actions.relation.DownloadMembersAction;
    5454import org.openstreetmap.josm.actions.relation.DownloadSelectedIncompleteMembersAction;
     55import org.openstreetmap.josm.actions.relation.EditRelationAction;
    5556import org.openstreetmap.josm.actions.relation.SelectInRelationListAction;
    5657import org.openstreetmap.josm.actions.relation.SelectMembersAction;
     
    207208            + tr("Select objects for which to change tags.") + "</p></html>");
    208209
    209     private PresetHandler presetHandler = new PresetHandler() {
     210    private final PresetHandler presetHandler = new PresetHandler() {
    210211        @Override public void updateTags(List<Tag> tags) {
    211212            Command command = TaggingPreset.createCommand(getSelection(), tags);
     
    462463    }
    463464
    464          /**
     465     /**
    465466     * This simply fires up an {@link RelationEditor} for the relation shown; everything else
    466467     * is the editor's business.
     
    474475                Main.main.getEditLayer(),
    475476                relation,
    476                 ((MemberInfo) membershipData.getValueAt(row, 1)).role).setVisible(true);
     477                EditRelationAction.getMembersForCurrentSelection(relation)
     478        ).setVisible(true);
    477479    }
    478480
Note: See TracChangeset for help on using the changeset viewer.