//No commands --> exit fast
return;
}
//todo fix spring
CommandConfigurer commandConfigurer = getService( CommandConfigurer.class );
ApplicationObjectConfigurer configurer = getService( ApplicationObjectConfigurer.class );
ButtonFactory bf = getToolBarButtonFactory();
CommandsBarButtonConfigurer commandsBarButtonConfigurer = new CommandsBarButtonConfigurer();
//Now create the button panel
// JPanel buttonPanel = getComponentFactory().createPanel( new VerticalLayout( UIConstants.ONE_SPACE ) );
JPanel buttonPanel = getComponentFactory().createPanel( new VerticalLayout() );
for ( Iterator<Collection<? extends ActionCommand>> it = commands.iterator(); it.hasNext(); ) {
Collection<? extends ActionCommand> commandsCollection = it.next();
for ( ActionCommand command : commandsCollection ) {
commandConfigurer.configure( command );
CommandFaceDescriptor face = new CommandFaceDescriptor();
configurer.configure( face, command.getId() + '.' + COMMANDS_FACE_ID );
command.setFaceDescriptor( COMMANDS_FACE_ID, face );