001package jmri.jmrit.ussctc;
002
003/**
004 * Swing action to create and register a OsIndicatorFrame object
005 *
006 * @see jmri.jmrit.ussctc.OsIndicator
007 * @see jmri.jmrit.ussctc.OsIndicatorFrame
008 * @see jmri.jmrit.ussctc.OsIndicatorPanel
009 * @author Bob Jacobsen Copyright (C) 2003, 2007
010 */
011public class OsIndicatorAction extends jmri.util.JmriJFrameAction {
012
013    public OsIndicatorAction(String s) {
014        super(s);
015
016        // disable ourself if there is no route manager object available
017        if (jmri.InstanceManager.getNullableDefault(jmri.RouteManager.class) == null) {
018            setEnabled(false);
019        }
020    }
021
022    /**
023     * Method to be overridden to make this work. Provide a completely qualified
024     * class name, must be castable to JmriJFrame
025     */
026    @Override
027    public String getName() {
028        return "jmri.jmrit.ussctc.OsIndicatorFrame";
029    }
030
031}