Major
Nice to have
Bugfix
Major
Enhancement
Nice to have
#23698
Instantiate PopupCommand using lambda expression
PopupCommand is an abstract class with one method to implement. If you want to use it, you have to create your own class just to implement that one method. It would save a lot of useless code if you could pass a BiFunction that is the implementation of that method. Then you could create a PopupCommand in one line instead of having to create an extra class. Example:
Alt: {{#!java new PopupCommand() {
@Override
public HandlerResult showPopup(DisplayContext displayContext, PopupHandler popupHandler) {
...
}
} }}}
New: {{#!java new LambdaPopupCommand((displayContext, popupHandler) -> .. .) }}}
Test
No test, because it is tiny and a test would be costly.