cuba-platform / documentation

CUBA Platform Documentation
https://www.cuba-platform.com
Creative Commons Attribution 4.0 International
25 stars 45 forks source link

Menu item class can also implement Consumer or MenuItemRunnable #715

Closed alexbudarov closed 4 years ago

alexbudarov commented 4 years ago

Environment

Description of the bug or enhancement

class - fully qualified name of a class which extends Runnable.

This is not complete information.

According to source code, menu item class can also implement Consumer<Map<String, Object>> or com.haulmont.cuba.gui.config.MenuItemRunnable.

                throw new IllegalStateException(
                        String.format("Class \"%s\" must implement Runnable or Consumer<Map<String, Object>> or MenuItemRunnable",
                                runnableClass));