try {
if ((this.parentControl.getSelectionModel().getSelectedSegments() != null)) {
SignalProcessor processor = new SignalProcessor();
//Returns a signal composed by the selected segments
Segment segment = processor.process(this.parentControl.getSelectionModel().getSelectedSegments());
if ((segment != null) && (!segment.isEmpty())) {
if (!this.parentControl.isWaitingForClose()) {
this.doCharts(segment);