001package jmri.jmrix.lenz.swing.liusb; 002 003import java.awt.event.ActionEvent; 004import jmri.jmrix.lenz.swing.AbstractXPressNetAction; 005 006/** 007 * Swing action to create and register an LIUSBConfigFrame object. 008 * <p> 009 * The {@link LIUSBConfigFrame} is a configuration tool. 010 * 011 * @author Paul Bender Copyright (C) 2009 012 */ 013public class LIUSBConfigAction extends AbstractXPressNetAction { 014 015 public LIUSBConfigAction(String s, jmri.jmrix.lenz.XNetSystemConnectionMemo memo) { 016 super(s,memo); 017 } 018 019 public LIUSBConfigAction(jmri.jmrix.lenz.XNetSystemConnectionMemo memo) { 020 this(Bundle.getMessage("MenuItemLIUSBConfigurationManager"), memo); 021 } 022 023 @Override 024 public void actionPerformed(ActionEvent e) { 025 // create an LIUSBConfigFrame 026 LIUSBConfigFrame f = new LIUSBConfigFrame(_memo); 027 f.setVisible(true); 028 } 029 030}