001// License: GPL. For details, see LICENSE file. 002package org.openstreetmap.josm.actions; 003 004import static org.openstreetmap.josm.tools.I18n.tr; 005 006import javax.swing.AbstractAction; 007 008import org.openstreetmap.josm.tools.ImageProvider; 009 010/** 011 * Superclass of "Select" actions in various parts of JOSM. 012 * @since 7949 013 */ 014public abstract class AbstractSelectAction extends AbstractAction { 015 016 /** 017 * Constructs a new {@code AbstractSelectAction}. 018 */ 019 public AbstractSelectAction() { 020 putValue(NAME, tr("Select")); 021 putValue(SHORT_DESCRIPTION, tr("Set the selected elements on the map to the selected items in the list above.")); 022 putValue(SMALL_ICON, ImageProvider.get("dialogs", "select")); 023 } 024}