001package jmri.jmrix.lenz.swing.li101;
002
003import java.awt.event.ActionEvent;
004import jmri.jmrix.lenz.swing.AbstractXPressNetAction;
005
006/**
007 * Swing action to create and register an LI101Frame object.
008 * <p>
009 * The {@link LI101Frame} is a configuration tool. Note that this class does not
010 * provide port services for the LI101; that's done elsewhere.
011 *
012 * @author Paul Bender Copyright (C) 2003
013 */
014public class LI101Action extends AbstractXPressNetAction {
015
016    public LI101Action(String s, jmri.jmrix.lenz.XNetSystemConnectionMemo memo) {
017        super(s,memo);
018    }
019
020    public LI101Action(jmri.jmrix.lenz.XNetSystemConnectionMemo memo) {
021        this(Bundle.getMessage("MenuItemLI101ConfigurationManager"), memo);
022    }
023
024    @Override
025    public void actionPerformed(ActionEvent e) {
026        // create an LI101Frame
027        LI101Frame f = new LI101Frame(_memo);
028        f.setVisible(true);
029    }
030
031}