001package jmri.server.json; 002 003import java.awt.event.ActionEvent; 004import javax.swing.AbstractAction; 005import jmri.InstanceManager; 006 007public class JsonServerAction extends AbstractAction { 008 009 public JsonServerAction(String s) { 010 super(s); 011 } 012 013 public JsonServerAction() { 014 this(Bundle.getMessage("MenuItemStartServer")); 015 } 016 017 @Override 018 public void actionPerformed(ActionEvent e) { 019 InstanceManager.getDefault(JsonServer.class).start(); 020 } 021}