001package jmri.jmrix.lenz.swing.systeminfo;
002
003import java.awt.event.ActionEvent;
004import jmri.jmrix.lenz.swing.AbstractXPressNetAction;
005
006/**
007 * Swing action to create and register a SystemInfo object.
008 * <p>
009 * The {@link SystemInfoFrame} is an information screen giving the hardware and
010 * software versions of the Interface hardware and the command station
011 *
012 * @author Paul Bender Copyright (C) 2003
013 */
014public class SystemInfoAction extends AbstractXPressNetAction {
015
016    public SystemInfoAction(String s, jmri.jmrix.lenz.XNetSystemConnectionMemo memo) {
017        super(s,memo);
018    }
019
020    public SystemInfoAction(jmri.jmrix.lenz.XNetSystemConnectionMemo memo) {
021        this(Bundle.getMessage("MenuItemXNetSystemInformation"), memo);
022    }
023
024    @Override
025    public void actionPerformed(ActionEvent e) {
026        // create an SystemInfoFrame
027        SystemInfoFrame f = new SystemInfoFrame(_memo);
028        f.setVisible(true);
029    }
030}
031