001// License: GPL. For details, see LICENSE file. 002package org.openstreetmap.josm.actions; 003 004import java.util.Collection; 005 006import javax.swing.Action; 007 008import org.openstreetmap.josm.data.osm.OsmPrimitive; 009 010/** 011 * Interface used to enable/disable all primitive-related actions, even those registered by plugins. 012 * @since 5821 013 */ 014public interface OsmPrimitiveAction extends Action { 015 016 /** 017 * Specifies the working set of primitives. 018 * @param primitives The new working set of primitives. Can be null or empty 019 */ 020 public abstract void setPrimitives(Collection<? extends OsmPrimitive> primitives); 021}