001package jmri.jmrix.pricom.pockettester; 002 003 004/** 005 * JmriJFrameAction to create and register a pricom.pockettester.DataSource 006 * object 007 * 008 * @see jmri.jmrix.pricom.pockettester.DataSource 009 * 010 * @author Bob Jacobsen Copyright (C) 2002,2005 011 */ 012public class DataSourceAction extends jmri.util.JmriJFrameAction { 013 014 public DataSourceAction(String s) { 015 super(s); 016 } 017 018 public DataSourceAction() { 019 super(""); // have to invoke a ctor that exists 020 putValue(javax.swing.Action.NAME, Bundle.getMessage("ActionSource")); 021 } 022 023 /** 024 * Method to be overridden to make this work. Provide a completely qualified 025 * class name, must be castable to JmriJFrame 026 */ 027 @Override 028 public String getName() { 029 return "jmri.jmrix.pricom.pockettester.DataSource"; 030 } 031 032}