use of jmri.jmrit.withrottle.WiThrottleCreationAction in project JMRI by JMRI.
the class AppsLaunchFrame method debugMenu.
protected void debugMenu(JMenuBar menuBar, WindowInterface wi, AppsLaunchPane pane) {
JMenu d = new DebugMenu(pane);
// also add some tentative items from jmrix
d.add(new JSeparator());
d.add(new jmri.jmrix.pricom.PricomMenu());
d.add(new JSeparator());
d.add(new jmri.jmrix.jinput.treecontrol.TreeAction());
d.add(new jmri.jmrix.libusb.UsbViewAction());
d.add(new JSeparator());
try {
d.add(new RunJythonScript(Bundle.getMessage("MenuRailDriverThrottle"), new File(FileUtil.findURL("jython/RailDriver.py").toURI())));
} catch (URISyntaxException | NullPointerException ex) {
log.error("Unable to load RailDriver Throttle", ex);
JMenuItem i = new JMenuItem(Bundle.getMessage("MenuRailDriverThrottle"));
i.setEnabled(false);
d.add(i);
}
// also add some tentative items from webserver
d.add(new JSeparator());
d.add(new WebServerAction());
d.add(new JSeparator());
d.add(new WiThrottleCreationAction());
menuBar.add(d);
}
use of jmri.jmrit.withrottle.WiThrottleCreationAction in project JMRI by JMRI.
the class Apps method debugMenu.
protected void debugMenu(JMenuBar menuBar, WindowInterface wi) {
JMenu d = new DebugMenu(this);
// also add some tentative items from jmrix
d.add(new JSeparator());
d.add(new jmri.jmrix.pricom.PricomMenu());
d.add(new JSeparator());
d.add(new jmri.jmrix.jinput.treecontrol.TreeAction());
d.add(new jmri.jmrix.libusb.UsbViewAction());
d.add(new JSeparator());
try {
d.add(new RunJythonScript(Bundle.getMessage("MenuRailDriverThrottle"), new File(FileUtil.findURL("jython/RailDriver.py").toURI())));
} catch (URISyntaxException | NullPointerException ex) {
log.error("Unable to load RailDriver Throttle", ex);
JMenuItem i = new JMenuItem(Bundle.getMessage("MenuRailDriverThrottle"));
i.setEnabled(false);
d.add(i);
}
// also add some tentative items from webserver
d.add(new JSeparator());
d.add(new WebServerAction());
d.add(new JSeparator());
d.add(new WiThrottleCreationAction());
menuBar.add(d);
}
Aggregations