}
else if (this.listSensor.size() == 0) {
for (int i = 0; i < this.sensorsListView.getModel().getRowCount(); i++) {
String sensorName = (String) this.sensorsListView.getModel().getValueAt(i, 1);
Boolean isEnabled = (Boolean) this.sensorsListView.getModel().getValueAt(i, 0);
ISensor sensor = new SensorModel();
sensor.setName(sensorName);
sensor.setEnabled(isEnabled);
this.listSensor.add(sensor);
}
}
}