001package jmri.jmrit.operations.locations.schedules.tools;
002
003import java.awt.event.ActionEvent;
004
005import javax.swing.AbstractAction;
006
007/**
008 * Action to load the schedules by car type and load frame.
009 *
010 * @author Daniel Boudreau Copyright (C) 2012
011 */
012public class SchedulesByLoadAction extends AbstractAction {
013
014    private SchedulesByLoadFrame _slf;
015
016    public SchedulesByLoadAction() {
017        super(Bundle.getMessage("MenuItemShowSchedulesByLoad"));
018    }
019
020    @Override
021    public void actionPerformed(ActionEvent e) {
022        if (_slf != null) {
023            _slf.dispose();
024        }
025        _slf = new SchedulesByLoadFrame();
026    }
027}