source: josm/trunk/src/org/openstreetmap/josm/gui/tagging/presets/TaggingPresetHandler.java@ 10590

Last change on this file since 10590 was 10590, checked in by Don-vip, 8 years ago

see #11390, fix #13191 - Documentation and migration to java 8 of preset code (patch by michael2402) - gsoc-core

  • Property svn:eol-style set to native
File size: 784 bytes
Line 
1// License: GPL. For details, see LICENSE file.
2package org.openstreetmap.josm.gui.tagging.presets;
3
4import java.util.Collection;
5import java.util.List;
6
7import org.openstreetmap.josm.data.osm.OsmPrimitive;
8import org.openstreetmap.josm.data.osm.Tag;
9
10/**
11 * This interface needs to be implemented in order to display a tagging preset. It allows the preset dialog to query the primitives it should
12 * be displayed for and modify them.
13 */
14public interface TaggingPresetHandler {
15 /**
16 * Gets the selection the preset should be applied to.
17 * @return A collection of primitives.
18 */
19 Collection<OsmPrimitive> getSelection();
20
21 /**
22 * Update the given tags on the selection.
23 * @param tags The tags to update.
24 */
25 void updateTags(List<Tag> tags);
26}
Note: See TracBrowser for help on using the repository browser.