Commit 0dc66910 authored by Thomas Huster's avatar Thomas Huster

[17453] added generic types to SavingUpdateValueStrategy

parent 6853dbd2
Pipeline #12562 passed with stages
in 4 minutes and 52 seconds
......@@ -7,7 +7,7 @@ import org.eclipse.core.runtime.IStatus;
import ch.elexis.core.model.Identifiable;
public class SavingUpdateValueStrategy extends UpdateValueStrategy {
public class SavingUpdateValueStrategy<S, D> extends UpdateValueStrategy<S, D> {
private boolean autoSave;
private IModelService modelService;
private IObservableValue<?> observable;
......@@ -25,7 +25,7 @@ public class SavingUpdateValueStrategy extends UpdateValueStrategy {
protected IStatus doSet(IObservableValue observableValue, Object value){
IStatus ret = super.doSet(observableValue, value);
IStatus ret = super.doSet(observableValue, (D) value);
if (autoSave) {
if (observable.getValue() instanceof Identifiable) { observable.getValue());
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment