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.CarsTableFrame;
008
009/**
010 * Starts the ImportCars thread
011 *
012 * @author Dan Boudreau Copyright (C) 2008
013 */
014public class ExportCarRosterAction extends AbstractAction {
015
016    CarsTableFrame _carsTableFrame;
017
018    public ExportCarRosterAction(CarsTableFrame carsTableFrame) {
019        super(Bundle.getMessage("MenuItemExport"));
020        _carsTableFrame = carsTableFrame;
021    }
022
023    @Override
024    public void actionPerformed(ActionEvent ae) {
025        ExportCars exportCars = new ExportCars(_carsTableFrame.carsTableModel.getSelectedCarList());
026        exportCars.writeOperationsCarFile();
027    }
028
029//    private final static Logger log = LoggerFactory.getLogger(ExportCarRosterAction.class);
030}