001package jmri.jmrit.operations.rollingstock.cars.tools;
002
003import java.awt.event.ActionEvent;
004
005import javax.swing.AbstractAction;
006
007import jmri.jmrit.operations.rollingstock.cars.CarSetFrame;
008
009/**
010 * Swing action to create and register a CarsSetFrame object.
011 *
012 * @author Bob Jacobsen Copyright (C) 2001
013 * @author Daniel Boudreau Copyright (C) 2010
014 * 
015 */
016public class EnableDestinationAction extends AbstractAction {
017
018    CarSetFrame _csFrame;
019
020    public EnableDestinationAction(CarSetFrame frame) {
021        super(Bundle.getMessage("MenuEnableDestination"));
022        _csFrame = frame;
023    }
024
025    @Override
026    public void actionPerformed(ActionEvent e) {
027        _csFrame.setDestinationEnabled(true);
028    }
029}
030
031