use of com.haulmont.cuba.gui.config.MenuCommand in project cuba by cuba-platform.
the class MenuBuilder method assignCommand.
private void assignCommand(final JMenuItem jMenuItem, MenuItem item) {
final MenuCommand command = new MenuCommand(item);
jMenuItem.addActionListener(new ValidationAwareActionListener() {
@Override
public void actionPerformedAfterValidation(ActionEvent e) {
command.execute();
StringBuilder menuPath = new StringBuilder();
formatMenuPath(item, menuPath);
userActionsLog.trace("Action \"{}\" was performed using menu item {}", command.getCommandDescription(), menuPath.toString());
}
});
}
Aggregations