for (int i = 0; i < sensors.size(); i++) {
ISensor s = sensors.get(i);
if (s.isEnabled()) {
if (s instanceof SensorModel) {
SensorModel eSensort = (SensorModel) s;
eSensort.addListener(sensorListener);
}
view.addSensor(s.getName(), s.getName());
if (i == postScanBehaviour.getSensor()) {
view.setSensorSelected(i);
}