001package jmri.util.startup;
002
003
004import javax.swing.JFileChooser;
005
006import jmri.jmrit.XmlFile;
007
008import org.openide.util.lookup.ServiceProvider;
009
010/**
011 *
012 * @author Randall Wood 2016
013 */
014@ServiceProvider(service = StartupModelFactory.class)
015public class PerformFileModelFactory extends AbstractFileModelFactory {
016
017    @Override
018    public Class<? extends StartupModel> getModelClass() {
019        return PerformFileModel.class;
020    }
021
022    @Override
023    public PerformFileModel newModel() {
024        return new PerformFileModel();
025    }
026
027    @Override
028    protected JFileChooser setFileChooser() {
029        return XmlFile.userFileChooser("XML files", "xml");
030    }
031
032}