Changeset 1925 in josm for trunk/src/org/openstreetmap/josm/gui/dialogs/relation/MemberTableModel.java
- Timestamp:
- 2009-08-08T08:52:03+02:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/dialogs/relation/MemberTableModel.java
r1922 r1925 69 69 public void populate(Relation relation) { 70 70 members.clear(); 71 if (relation != null && relation.members != null) {71 if (relation != null) { 72 72 // make sure we work with clones of the relation members 73 73 // in the model. 74 members.addAll(new Relation(relation). members);74 members.addAll(new Relation(relation).getMembers()); 75 75 } 76 76 fireTableDataChanged(); … … 328 328 /** 329 329 * Replies the number of members which refer to a particular primitive 330 * 330 * 331 331 * @param primitive the primitive 332 332 * @return the number of members which refer to a particular primitive … … 344 344 /** 345 345 * updates the role of the members given by the indices in <code>idx</code> 346 * 346 * 347 347 * @param idx the array of indices 348 348 * @param role the new role … … 362 362 /** 363 363 * Get the currently selected relation members 364 * 364 * 365 365 * @return a collection with the currently selected relation members 366 366 */ … … 375 375 /** 376 376 * Replies the set of selected referers. Never null, but may be empty. 377 * 377 * 378 378 * @return the set of selected referers 379 379 */ … … 389 389 * Replies true, if the selected {@see OsmPrimitive}s in the layer belonging 390 390 * to this model are in sync with the selected referers in this model. 391 * 391 * 392 392 * @return 393 393 */ … … 400 400 /** 401 401 * Selects the members in the collection selectedMembers 402 * 402 * 403 403 * @param selectedMembers the collection of selected members 404 404 */ … … 441 441 * to an editable relation, i.e. a relation which is not 442 442 * incomplete. 443 * 443 * 444 444 * @param index the index 445 445 * @return true, if the index-th relation members referrs … … 460 460 * Replies true if there is at least one relation member in this model 461 461 * which refers to at least on the primitives in <code>primitives</code>. 462 * 462 * 463 463 * @param primitives the collection of primitives 464 464 * @return true if there is at least one relation member in this model … … 485 485 * Selects all mebers which refer to {@see OsmPrimitive}s in the collections 486 486 * <code>primitmives</code>. Does nothing is primitives is null. 487 * 487 * 488 488 * @param primitives the collection of primitives 489 489 */ … … 507 507 * Replies true if the layer this model belongs to is equal to the active 508 508 * layer 509 * 509 * 510 510 * @return true if the layer this model belongs to is equal to the active 511 511 * layer
Note:
See TracChangeset
for help on using the changeset viewer.