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