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