[cooja] plugins/VariableWatcher: Also disble addr and size input fields when monitoring

This commit is contained in:
Enrico Joerns 2014-08-28 18:21:45 +02:00
parent 33b211c0b3
commit 42ad188b69

View file

@ -483,6 +483,8 @@ public class VariableWatcher extends VisPlugin implements MotePlugin {
varAddrCheckBox.setEnabled(true); varAddrCheckBox.setEnabled(true);
readButton.setEnabled(true); readButton.setEnabled(true);
writeButton.setEnabled(true); writeButton.setEnabled(true);
varAddressField.setEnabled(true);
varSizeField.setEnabled(true);
if (!varAddrCheckBox.isSelected()) { if (!varAddrCheckBox.isSelected()) {
varNameCombo.setEnabled(true); varNameCombo.setEnabled(true);
} }
@ -523,6 +525,8 @@ public class VariableWatcher extends VisPlugin implements MotePlugin {
varAddrCheckBox.setEnabled(false); varAddrCheckBox.setEnabled(false);
readButton.setEnabled(false); readButton.setEnabled(false);
writeButton.setEnabled(false); writeButton.setEnabled(false);
varAddressField.setEnabled(false);
varSizeField.setEnabled(false);
varNameCombo.setEnabled(false); varNameCombo.setEnabled(false);
} }
}); });