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.ScheduleEditFrame;
008
009/**
010 * Action to launch schedule options.
011 *
012 * @author Daniel Boudreau Copyright (C) 2010, 2011
013 */
014public class ScheduleOptionsAction extends AbstractAction {
015
016    private ScheduleEditFrame _sef;
017
018    public ScheduleOptionsAction(ScheduleEditFrame sef) {
019        super(Bundle.getMessage("MenuItemScheduleOptions"));
020        _sef = sef;
021    }
022
023    @Override
024    public void actionPerformed(ActionEvent e) {
025        new ScheduleOptionsFrame(_sef);
026    }
027
028}