source: josm/trunk/src/org/openstreetmap/josm/actions/OsmPrimitiveAction.java@ 6744

Last change on this file since 6744 was 5821, checked in by Don-vip, 11 years ago

see #7846 - Large code refactorization in management of popup menus to simplify interactions with plugins (needed at least for imagery-xml-bounds and tag2link plugins)

File size: 634 bytes
Line 
1// License: GPL. For details, see LICENSE file.
2package org.openstreetmap.josm.actions;
3
4import java.util.Collection;
5
6import javax.swing.Action;
7
8import org.openstreetmap.josm.data.osm.OsmPrimitive;
9
10/**
11 * Interface used to enable/disable all primitive-related actions, even those registered by plugins.
12 * @since 5821
13 */
14public interface OsmPrimitiveAction extends Action {
15
16 /**
17 * Specifies the working set of primitives.
18 * @param primitives The new working set of primitives. Can be null or empty
19 */
20 public abstract void setPrimitives(Collection<? extends OsmPrimitive> primitives);
21}
Note: See TracBrowser for help on using the repository browser.