fix smoothing preview
@@ -21,7 +21,6 @@ package io.github.mzmine.modules.dataprocessing.featdet_smoothing;
import io.github.mzmine.datamodel.Scan;
import io.github.mzmine.datamodel.featuredata.IonMobilogramTimeSeries;
import io.github.mzmine.datamodel.featuredata.IonTimeSeries;
-import io.github.mzmine.datamodel.features.Feature;
import io.github.mzmine.datamodel.features.FeatureList;
import io.github.mzmine.datamodel.features.ModularFeature;
import io.github.mzmine.datamodel.features.ModularFeatureList;
@@ -87,8 +86,8 @@ public class SmoothingSetupDialog extends ParameterSetupDialogWithPreview {
.addListener(((observable, oldValue, newValue) -> {
if (newValue != null) {
fBox.setItems(
- (ObservableList<ModularFeature>) (ObservableList<? extends Feature>) newValue
- .getFeatures(newValue.getRawDataFile(0)));
+ FXCollections.observableArrayList(newValue
+ .getFeatures(newValue.getRawDataFile(0))));
} else {
fBox.setItems(FXCollections.emptyObservableList());
}
