Changeset 11922 in josm
- Timestamp:
- 2017-04-15T20:29:26+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/relation/AbstractRelationAction.java
r11590 r11922 18 18 */ 19 19 public abstract class AbstractRelationAction extends AbstractAction implements OsmPrimitiveAction { 20 /** relation collection */ 20 21 protected transient Collection<Relation> relations = Collections.<Relation>emptySet(); 21 22 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 */ 23 28 protected static final Collection<Relation> getRelations(Collection<? extends OsmPrimitive> primitives) { 24 29 if (primitives == null || primitives.isEmpty()) { … … 35 40 } 36 41 42 /** 43 * Override in subclasses to update the enabled state of the action when something changes. 44 */ 37 45 protected void updateEnabledState() { 38 46 setEnabled(!relations.isEmpty());
Note:
See TracChangeset
for help on using the changeset viewer.