From: Bob J. <jac...@us...> - 2003-05-11 02:01:14
|
Update of /cvsroot/jmri/jmri/jmrix/loconet/locogen In directory sc8-pr-cvs1:/tmp/cvs-serv29804/jmrix/loconet/locogen Modified Files: LocoGenAction.java Log Message: add default ctor (without argument) so that the Action object can be created via reflection easily Index: LocoGenAction.java =================================================================== RCS file: /cvsroot/jmri/jmri/jmrix/loconet/locogen/LocoGenAction.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** LocoGenAction.java 1 Mar 2002 00:01:09 -0000 1.1 --- LocoGenAction.java 11 May 2003 02:00:37 -0000 1.2 *************** *** 1,10 **** ! /** * LocoGenAction.java * ! * Description: Swing action to create and register a * Loco(Mon)GenFrame object * * @author Bob Jacobsen Copyright (C) 2001 ! * @version */ --- 1,10 ---- ! /** * LocoGenAction.java * ! * Description: Swing action to create and register a * Loco(Mon)GenFrame object * * @author Bob Jacobsen Copyright (C) 2001 ! * @version */ *************** *** 18,23 **** public class LocoGenAction extends AbstractAction { ! public LocoGenAction(String s) { super(s);} ! public void actionPerformed(ActionEvent e) { // create a LocoGenFrame --- 18,25 ---- public class LocoGenAction extends AbstractAction { ! public LocoGenAction(String s) { super(s);} ! ! public LocoGenAction() { this("Send LocoNet message");} ! public void actionPerformed(ActionEvent e) { // create a LocoGenFrame *************** *** 29,34 **** log.error("Exception: "+ex.toString()); } ! f.show(); ! // connect to the LnTrafficController f.connect(LnTrafficController.instance()); --- 31,36 ---- log.error("Exception: "+ex.toString()); } ! f.show(); ! // connect to the LnTrafficController f.connect(LnTrafficController.instance()); |