Ignore:
Timestamp:
2009-09-08T23:55:18+02:00 (15 years ago)
Author:
guggis
Message:

Updating to JOSM r2082

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/graphview/src/org/openstreetmap/josm/plugins/graphview/plugin/data/JOSMDataSource.java

    r17371 r17538  
    3636
    3737        public Iterable<RelationMember> getMembers(Relation relation) {
    38                 List<RelationMember> members = new ArrayList<RelationMember>(relation.members.size());
    39                 for (org.openstreetmap.josm.data.osm.RelationMember member : relation.members) {
    40                         if (!member.member.deleted && !member.member.incomplete) {
     38                List<RelationMember> members = new ArrayList<RelationMember>(relation.getMembersCount());
     39                for (org.openstreetmap.josm.data.osm.RelationMember member : relation.getMembers()) {
     40                        if (!member.getMember().isDeleted() && !member.getMember().incomplete) {
    4141                                members.add(new RelationMemberImpl(member));
    4242                        }
     
    149149
    150150                protected boolean accept(P primitive) {
    151                         return !primitive.deleted && !primitive.incomplete;
     151                        return !primitive.isDeleted() && !primitive.incomplete;
    152152                }
    153153        }
     
    166166                protected boolean accept(Relation relation) {
    167167                        boolean complete = true;
    168                         for (org.openstreetmap.josm.data.osm.RelationMember member : relation.members) {
    169                                 if (member.member == null || member.member.deleted || member.member.incomplete) {
     168                        for (org.openstreetmap.josm.data.osm.RelationMember member : relation.getMembers()) {
     169                                if (member.getMember() == null || member.getMember().isDeleted() || member.getMember().incomplete) {
    170170                                        complete = false;
    171171                                }
     
    179179                private final Object member;
    180180                public RelationMemberImpl(org.openstreetmap.josm.data.osm.RelationMember originalMember) {
    181                         this.role = originalMember.role;
    182                         this.member = originalMember.member;
     181                        this.role = originalMember.getRole();
     182                        this.member = originalMember.getMember();
    183183                }
    184184                public String getRole() {
Note: See TracChangeset for help on using the changeset viewer.