Ignore:
Timestamp:
2009-08-08T11:59:13+02:00 (15 years ago)
Author:
jttt
Message:

Replace RelationMember.role with RelationMember.getRole() and RelationMember.hasRole()

Location:
trunk/src/org/openstreetmap/josm/corrector
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/corrector/ReverseWayTagCorrector.java

    r1925 r1930  
    119119            for (RelationMember member : relation.getMembers()) {
    120120                if (!member.member.hasEqualSemanticAttributes(oldway)
    121                         || member.role.length() == 0) {
     121                        || !member.hasRole()) {
    122122                    position++;
    123123                    continue;
     
    127127                String newRole = null;
    128128                for (PrefixSuffixSwitcher prefixSuffixSwitcher : prefixSuffixSwitchers) {
    129                     newRole = prefixSuffixSwitcher.apply(member.role);
    130                     if (!newRole.equals(member.role)) {
     129                    newRole = prefixSuffixSwitcher.apply(member.getRole());
     130                    if (!newRole.equals(member.getRole())) {
    131131                        found = true;
    132132                        break;
  • trunk/src/org/openstreetmap/josm/corrector/RoleCorrectionTableModel.java

    r1814 r1930  
    4242            return NAME_FORMATTER.getName(roleCorrection.relation);
    4343        case 1:
    44             return roleCorrection.member.role;
     44            return roleCorrection.member.getRole();
    4545        case 2:
    4646            return roleCorrection.newRole;
Note: See TracChangeset for help on using the changeset viewer.