001package jmri.jmrit.logixng.tools.swing;
002
003import javax.swing.JMenu;
004import javax.swing.JSeparator;
005
006/**
007 * Create a "LogixNG" menu
008 *
009 * @author Daniel Bergqvist Copyright 2019
010 */
011public class LogixNGMenu extends JMenu {
012
013    public LogixNGMenu(String name) {
014        this();
015        setText(name);
016    }
017
018    public LogixNGMenu() {
019        super();
020
021        setText(Bundle.getMessage("MenuLogixNG"));
022
023        add(new StartStopAllLogixNGsAction(Bundle.getMessage("MenuStartLogixNG"), true));
024        add(new StartStopAllLogixNGsAction(Bundle.getMessage("MenuStopLogixNG"), false));
025        add(new JSeparator());
026        add(new LogixNGInitializationTableAction());
027        add(new ImportLogixAction());
028        add(new InlineLogixNGsAction());
029        add(new WhereUsedAction(Bundle.getMessage("MenuItemWhereUsed")));
030    }
031
032//    private final static org.slf4j.Logger log = org.slf4j.LoggerFactory.getLogger(LogixNGMenu.class);
033}