Skip to content
Permalink
Browse files

switch clause

  • Loading branch information...
icklesteve committed May 24, 2019
1 parent 9f1ba71 commit 01bd94c50f5312746577675e826c3c3c36da378a
@@ -107,15 +107,13 @@ void updateValues() {
setChoiceType(_addLocoJmri, ep.getAddLocoToJMRI());
setChoiceType(_removeLocosJmri, ep.getRemoveLocoFromJMRI());
switch (ep.getAdhocLocoFromEcos()) {
case 0:
_adhocLocoEcosAsk.setSelected(true);
break;
case 1:
_adhocLocoEcosLeave.setSelected(true);
break;
case 2:
_adhocLocoEcosRemove.setSelected(true);
break;
case 0:
default:
_adhocLocoEcosAsk.setSelected(true);
break;
@@ -125,15 +123,13 @@ void updateValues() {
_ecosDescription.setText(ep.getEcosLocoDescription());

switch (ep.getForceControlFromEcos()) {
case 0x00:
_forceControlLocoEcosAsk.setSelected(true);
break;
case 0x01:
_forceControlLocoEcosNever.setSelected(true);
break;
case 0x02:
_forceControlLocoEcosAlways.setSelected(true);
break;
case 0x00:
default:
_forceControlLocoEcosAsk.setSelected(true);
break;
@@ -310,15 +306,13 @@ private JPanel throttleTab() {
_adhocLocoEcosLeave = new JRadioButton(Bundle.getMessage("ButtonAlwaysLeave"));
_adhocLocoEcosRemove = new JRadioButton(Bundle.getMessage("ButtonAlwaysRemove"));
switch (ep.getAdhocLocoFromEcos()) {
case 0:
_adhocLocoEcosAsk.setSelected(true);
break;
case 1:
_adhocLocoEcosLeave.setSelected(true);
break;
case 2:
_adhocLocoEcosRemove.setSelected(true);
break;
case 0:
default:
_adhocLocoEcosAsk.setSelected(true);
break;
@@ -347,15 +341,13 @@ private JPanel throttleTab() {
_forceControlLocoEcosNever = new JRadioButton(Bundle.getMessage("ButtonControlNeverForce"));
_forceControlLocoEcosAlways = new JRadioButton(Bundle.getMessage("ButtonControlAlwaysForce"));
switch (ep.getForceControlFromEcos()) {
case 0x00:
_forceControlLocoEcosAsk.setSelected(true);
break;
case 0x01:
_forceControlLocoEcosNever.setSelected(true);
break;
case 0x02:
_forceControlLocoEcosAlways.setSelected(true);
break;
case 0x00:
default:
_forceControlLocoEcosAsk.setSelected(true);
break;
@@ -5,6 +5,9 @@
import jmri.LocoAddress;
import jmri.jmrix.AbstractThrottle;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
* An implementation of DccThrottle with code specific to a SPROG Command
* Station connection.
@@ -176,5 +179,5 @@ protected void throttleDispose() {
commandStation.release(address);
finishRecord();
}

private final static Logger log = LoggerFactory.getLogger(SprogCSThrottle.class);
}

0 comments on commit 01bd94c

Please sign in to comment.
You can’t perform that action at this time.