001package jmri.jmrit.operations.locations.schedules.tools;
002
003import java.awt.event.ActionEvent;
004
005import javax.swing.AbstractAction;
006
007import jmri.InstanceManager;
008import jmri.jmrit.operations.locations.schedules.ScheduleManager;
009
010/**
011 * Action to reset the all of the schedule item hit counts for all schedules
012 *
013 * @author Daniel Boudreau Copyright (C) 2014
014 */
015public class SchedulesResetHitsAction extends AbstractAction {
016
017    public SchedulesResetHitsAction() {
018        super(Bundle.getMessage("MenuItemResetHits"));
019    }
020
021    @Override
022    public void actionPerformed(ActionEvent e) {
023        InstanceManager.getDefault(ScheduleManager.class).resetHitCounts();
024    }
025}