import org.simantics.db.service.LifecycleSupport;
import org.simantics.db.service.QueryControl;
import org.simantics.utils.DataContainer;
-import org.simantics.utils.datastructures.Callback;
/**
* @author Tuukka Lehtonen
Logger.defaultLogError(e);
}
} else {
- session.asyncRequest(request, new Callback<DatabaseException>() {
- @Override
- public void run(DatabaseException e) {
- if (e != null) {
- if (errorCallback != null)
- errorCallback.accept(e);
- else
- Logger.defaultLogError(e);
- }
+ session.asyncRequest(request, e -> {
+ if (e != null) {
+ if (errorCallback != null)
+ errorCallback.accept(e);
+ else
+ Logger.defaultLogError(e);
}
});
}