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 "History" actions in various parts of JOSM.
012 * @since 16495
013 */
014public abstract class AbstractShowHistoryAction extends AbstractAction {
015
016    /**
017     * Constructs a new {@code AbstractShowHistoryAction}.
018     */
019    protected AbstractShowHistoryAction() {
020        putValue(NAME, tr("History"));
021        putValue(SHORT_DESCRIPTION, tr("Download and show the history of the selected objects"));
022        new ImageProvider("dialogs", "history").getResource().attachImageIcon(this, true);
023    }
024}