Ignore:
Timestamp:
2009-08-08T08:52:03+02:00 (15 years ago)
Author:
jttt
Message:

Replaced Relation.members with Relation.getMembers()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/dialogs/relation/MemberTableModel.java

    r1922 r1925  
    6969    public void populate(Relation relation) {
    7070        members.clear();
    71         if (relation != null && relation.members != null) {
     71        if (relation != null) {
    7272            // make sure we work with clones of the relation members
    7373            // in the model.
    74             members.addAll(new Relation(relation).members);
     74            members.addAll(new Relation(relation).getMembers());
    7575        }
    7676        fireTableDataChanged();
     
    328328    /**
    329329     * Replies the number of members which refer to a particular primitive
    330      * 
     330     *
    331331     * @param primitive the primitive
    332332     * @return the number of members which refer to a particular primitive
     
    344344    /**
    345345     * updates the role of the members given by the indices in <code>idx</code>
    346      * 
     346     *
    347347     * @param idx the array of indices
    348348     * @param role the new role
     
    362362    /**
    363363     * Get the currently selected relation members
    364      * 
     364     *
    365365     * @return a collection with the currently selected relation members
    366366     */
     
    375375    /**
    376376     * Replies the set of selected referers. Never null, but may be empty.
    377      * 
     377     *
    378378     * @return the set of selected referers
    379379     */
     
    389389     * Replies true, if the selected {@see OsmPrimitive}s in the layer belonging
    390390     * to this model are in sync with the selected referers in this model.
    391      * 
     391     *
    392392     * @return
    393393     */
     
    400400    /**
    401401     * Selects the members in the collection selectedMembers
    402      * 
     402     *
    403403     * @param selectedMembers the collection of selected members
    404404     */
     
    441441     * to an editable relation, i.e. a relation which is not
    442442     * incomplete.
    443      * 
     443     *
    444444     * @param index the index
    445445     * @return true, if the index-th relation members referrs
     
    460460     * Replies true if there is at least one relation member in this model
    461461     * which refers to at least on the primitives in <code>primitives</code>.
    462      * 
     462     *
    463463     * @param primitives the collection of primitives
    464464     * @return true if there is at least one relation member in this model
     
    485485     * Selects all mebers which refer to {@see OsmPrimitive}s in the collections
    486486     * <code>primitmives</code>. Does nothing is primitives is null.
    487      * 
     487     *
    488488     * @param primitives the collection of primitives
    489489     */
     
    507507     * Replies true if the layer this model belongs to is equal to the active
    508508     * layer
    509      * 
     509     *
    510510     * @return true if the layer this model belongs to is equal to the active
    511511     * layer
Note: See TracChangeset for help on using the changeset viewer.