Changeset 21610 in osm for applications/editors/josm/plugins/graphview
- Timestamp:
- 2010-06-07T23:33:24+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
r19216 r21610 73 73 } 74 74 } 75 75 76 76 public Object getMember(RelationMember member) { 77 77 return member.getMember(); 78 78 } 79 79 80 80 public String getRole(RelationMember member) { 81 81 return member.getRole(); 82 82 } 83 83 84 84 public boolean isNMember(RelationMember member) { 85 85 return member.getMember() instanceof Node; 86 86 } 87 87 88 88 public boolean isWMember(RelationMember member) { 89 89 return member.getMember() instanceof Way; 90 90 } 91 91 92 92 public boolean isRMember(RelationMember member) { 93 93 return member.getMember() instanceof Relation; 94 94 } 95 95 96 96 97 97 private static final TagGroup EMPTY_TAG_GROUP; … … 150 150 151 151 private void updateNext() { 152 if (originalIterator.hasNext()) { 153 next = originalIterator.next(); 154 if (!accept(next)) { 155 updateNext(); 152 next = null; 153 while (originalIterator.hasNext()) { 154 P originalNext = originalIterator.next(); 155 if (accept(originalNext)) { 156 next = originalNext; 157 break; 156 158 } 157 } else {158 next = null;159 159 } 160 160 }
Note:
See TracChangeset
for help on using the changeset viewer.