001package apps.startup;
002
003import jmri.util.startup.AbstractActionModelFactory;
004import jmri.util.startup.StartupModelFactory;
005import jmri.util.startup.StartupModel;
006
007import apps.CreateButtonModel;
008
009import org.openide.util.lookup.ServiceProvider;
010
011/**
012 *
013 * @author Randall Wood 2016
014 */
015@ServiceProvider(service = StartupModelFactory.class)
016public class CreateButtonModelFactory extends AbstractActionModelFactory {
017
018    public CreateButtonModelFactory() {
019    }
020
021    @Override
022    public Class<? extends StartupModel> getModelClass() {
023        return CreateButtonModel.class;
024    }
025
026    @Override
027    public CreateButtonModel newModel() {
028        return new CreateButtonModel();
029    }
030
031    @Override
032    public String getEditModelMessage() {
033        return Bundle.getMessage("CreateButtonModelFactory.editModel.message");
034    }
035}