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.IPrimitive;
009
010/**
011 * Interface used to enable/disable all primitive-related actions, even those registered by plugins.
012 * @since 13957
013 */
014public interface IPrimitiveAction 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    void setPrimitives(Collection<? extends IPrimitive> primitives);
021}