001package jmri.jmrit.operations.trains.tools; 002 003import java.awt.event.ActionEvent; 004import javax.swing.AbstractAction; 005 006/** 007 * Export trains to a CSV file 008 * 009 * @author Dan Boudreau Copyright (C) 2015 010 * 011 */ 012public class ExportTrainRosterAction extends AbstractAction { 013 014 public ExportTrainRosterAction() { 015 super(Bundle.getMessage("MenuItemExport")); 016 } 017 018 @Override 019 public void actionPerformed(ActionEvent ae) { 020 ExportTrains ex = new ExportTrains(); 021 ex.writeOperationsTrainsFile(); 022 } 023}