diff --git a/src/main/java/edu/kit/typicalc/view/main/InputBar.java b/src/main/java/edu/kit/typicalc/view/main/InputBar.java index b43343c..9ea2f54 100644 --- a/src/main/java/edu/kit/typicalc/view/main/InputBar.java +++ b/src/main/java/edu/kit/typicalc/view/main/InputBar.java @@ -123,11 +123,7 @@ public class InputBar extends HorizontalLayout implements LocaleChangeObserver { } private void onExampleButtonClick() { - Consumer setValue = value -> { - inputField.setValue(value); - inputField.focus(); - }; - Dialog exampleDialog = new ExampleDialog(setValue); + Dialog exampleDialog = new ExampleDialog(this::inferTerm); exampleDialog.open(); }