001package jmri.jmris.srcp;
002
003import java.awt.event.ActionEvent;
004import javax.swing.AbstractAction;
005
006/**
007 * Swing action to create and register a JmriSRCPServerControlFrame object
008 *
009 * @author Paul Bender Copyright (C) 2009
010 */
011public class JmriSRCPServerAction extends AbstractAction {
012
013    public JmriSRCPServerAction(String s) {
014        super(s);
015    }
016
017    public JmriSRCPServerAction() {
018        this("Start JMRI SRCP Server");
019    }
020
021    @Override
022    public void actionPerformed(ActionEvent e) {
023
024        //JmriSRCPServerFrame f = new JmriSRCPServerFrame();
025        //f.setVisible(true);
026        JmriSRCPServerManager.getInstance().getServer().start();
027    }
028}
029
030
031