001package jmri.jmrit.ussctc; 002 003/** 004 * JmriJFrameAction to create and register a FollowerFrame object 005 * 006 * @see jmri.jmrit.ussctc.Follower 007 * @see jmri.jmrit.ussctc.FollowerFrame 008 * @see jmri.jmrit.ussctc.FollowerPanel 009 * @author Bob Jacobsen Copyright (C) 2003, 2007 010 */ 011public class FollowerAction extends jmri.util.JmriJFrameAction { 012 013 public FollowerAction(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.FollowerFrame"; // NOI18N 029 } 030 031}