001package jmri.jmrix.bachrus;
002
003import java.util.Locale;
004import jmri.util.startup.AbstractStartupActionFactory;
005import jmri.util.startup.StartupActionFactory;
006import org.openide.util.lookup.ServiceProvider;
007
008/**
009 * {@link jmri.util.startup.StartupActionFactory} for the
010 * {@link jmri.jmrix.bachrus.SpeedoConsoleAction}.
011 * 
012 * @author Todd Wegter Copyright (C) 2022
013 */
014@ServiceProvider(service = StartupActionFactory.class)
015public class SpeedoStartupActionFactory extends AbstractStartupActionFactory{
016
017    @Override
018    public String getTitle(Class<?> clazz, Locale locale) throws IllegalArgumentException {
019        if (!clazz.equals(SpeedoConsoleAction.class)) {
020            throw new IllegalArgumentException();
021        }
022        return "Open Bachrus Speedometer";
023    }
024
025    @Override
026    public Class<?>[] getActionClasses() {
027        return new Class<?>[]{SpeedoConsoleAction.class};
028    }
029}