001package jmri.jmris; 002 003import java.util.ResourceBundle; 004import javax.swing.JMenu; 005 006/** 007 * Create a "Server" menu containing the Server interface to the JMRI 008 * system-independent tools 009 * 010 * @author Paul Bender Copyright 2010 011 */ 012public class ServerMenu extends JMenu { 013 014 public ServerMenu(String name) { 015 this(); 016 setText(name); 017 } 018 019 public ServerMenu() { 020 021 super(); 022 023 ResourceBundle rb = ResourceBundle.getBundle("jmri.jmris.JmriServerBundle"); 024 025 setText(rb.getString("MenuServer")); 026 // This first menu item is for connection testing only. 027 // It provides no parsing. 028 //add(new jmri.jmris.JmriServerAction(rb.getString("MenuItemStartServer"))); 029 add(new jmri.jmris.simpleserver.SimpleServerMenu()); 030 add(new jmri.jmris.srcp.JmriSRCPServerMenu()); 031 032 } 033}