Changeset 17538 in osm for applications/editors/josm/plugins/graphview/src/org
- Timestamp:
- 2009-09-08T23:55:18+02:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/graphview/src/org/openstreetmap/josm/plugins/graphview/plugin/data/JOSMDataSource.java
r17371 r17538 36 36 37 37 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) { 41 41 members.add(new RelationMemberImpl(member)); 42 42 } … … 149 149 150 150 protected boolean accept(P primitive) { 151 return !primitive. deleted&& !primitive.incomplete;151 return !primitive.isDeleted() && !primitive.incomplete; 152 152 } 153 153 } … … 166 166 protected boolean accept(Relation relation) { 167 167 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) { 170 170 complete = false; 171 171 } … … 179 179 private final Object member; 180 180 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(); 183 183 } 184 184 public String getRole() {
Note:
See TracChangeset
for help on using the changeset viewer.