001package jmri.jmrit.swing.meter;
002
003import java.util.Locale;
004import jmri.util.startup.AbstractStartupActionFactory;
005import jmri.util.startup.StartupActionFactory;
006import org.openide.util.lookup.ServiceProvider;
007
008/**
009 * Factory for meter startup actions.
010 * 
011 * @author Randall Wood Copyright 2020
012 * @author Bob Jacobsen Copyright 2024
013 */
014@ServiceProvider(service = StartupActionFactory.class)
015public final class MeterStartupActionFactory extends AbstractStartupActionFactory {
016
017    @Override
018    public String getTitle(Class<?> clazz, Locale locale) throws IllegalArgumentException {
019        if (clazz.equals(MeterAction.class)) {
020            return Bundle.getMessage(locale, "StartupMeterAction");
021        }
022        throw new IllegalArgumentException(clazz.getName() + " is not supported by " + this.getClass().getName());
023    }
024
025    @Override
026    public Class<?>[] getActionClasses() {
027        return new Class[]{MeterAction.class};
028    }
029    
030}