public void editSensors(){
  Collection<Sensor> sensors=selectionModel.getSelection();
  if (!sensors.isEmpty()) {
    EditSensorsDialog d=new EditSensorsDialog(sensors);
    d.setBounds(100,100,450,500);
    d.setVisible(true);
  }
}

public void editSensors ( ) { Collection < Sensor > sensors = selectionModel . getSelection ( ) ; if ( ! sensors . isEmpty ( ) ) { EditSensorsDialog d = new EditSensorsDialog ( sensors ) ; d . setBounds ( 100 , 100 , 450 , 500 ) ; d . setVisible ( true ) ; } }
edit the selected sensors , if any .
