001package jmri.jmrit.operations.rollingstock.engines.tools; 002 003import java.awt.event.ActionEvent; 004 005import javax.swing.AbstractAction; 006 007/** 008 * Starts the ImportEngines thread 009 * 010 * @author Dan Boudreau Copyright (C) 2008 011 */ 012public class ImportEngineAction extends AbstractAction { 013 014 public ImportEngineAction() { 015 super(Bundle.getMessage("MenuItemImport")); 016 } 017 018 @Override 019 public void actionPerformed(ActionEvent ae) { 020 Thread mb = new ImportEngines(); 021 mb.setName("Import Engines"); // NOI18N 022 mb.start(); 023 } 024 025// private final static Logger log = LoggerFactory.getLogger(ImportEngineAction.class); 026}