Ignore:
Timestamp:
2017-04-15T20:29:26+02:00 (7 years ago)
Author:
Don-vip
Message:

javadoc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/relation/AbstractRelationAction.java

    r11590 r11922  
    1818 */
    1919public abstract class AbstractRelationAction extends AbstractAction implements OsmPrimitiveAction {
     20    /** relation collection */
    2021    protected transient Collection<Relation> relations = Collections.<Relation>emptySet();
    2122
    22     @SuppressWarnings("unused")
     23    /**
     24     * Returns the relations contained in the given collection.
     25     * @param primitives collection of primitives
     26     * @return the relation contained in {@code primitives}
     27     */
    2328    protected static final Collection<Relation> getRelations(Collection<? extends OsmPrimitive> primitives) {
    2429        if (primitives == null || primitives.isEmpty()) {
     
    3540    }
    3641
     42    /**
     43     * Override in subclasses to update the enabled state of the action when something changes.
     44     */
    3745    protected void updateEnabledState() {
    3846        setEnabled(!relations.isEmpty());
Note: See TracChangeset for help on using the changeset viewer.