this.messageToolbarItems = new ArrayList<ToolbarItem>();
toolbarButton = UIFactory.createToolbarButton( ActionRegistry.REFRESH_MESSAGES.get() );
this.workbenchToolbar.addButton( toolbarButton );
this.messageToolbarButtons.add( toolbarButton );
ToolbarSeparator separator = new ToolbarSeparator();
this.workbenchToolbar.addItem( separator );
Menu menu = new Menu();
MenuItem item = UIFactory.createMenuItem( ActionRegistry.REPLY.get() );
item.setText( TextProvider.get().toolbar_manager_to_all() );
menu.addItem( item );
item = UIFactory.createMenuItem( ActionRegistry.REPLY_ALL.get() );
item.setText( TextProvider.get().toolbar_manager_to_originator() );
menu.addItem( item );
ToolbarMenuButton menuButton = UIFactory.createToolbarMenuButton( ActionRegistry.REPLY.get() );
menuButton.setMenu( menu );
this.workbenchToolbar.addButton( menuButton );
this.messageToolbarButtons.add( menuButton );
separator = new ToolbarSeparator();
this.messageToolbarItems.add( separator );
this.messageToolbarButtons.add( toolbarButton );
toolbarButton = UIFactory.createToolbarButton( ActionRegistry.FORWARD.get() );
this.workbenchToolbar.addButton( toolbarButton );
this.messageToolbarButtons.add( toolbarButton );
toolbarButton = UIFactory.createToolbarButton( ActionRegistry.DELETE_MESSAGES.get() );
this.workbenchToolbar.addButton( toolbarButton );
this.messageToolbarButtons.add( toolbarButton );
this.markToolbarButton = new ToolbarButton( TextProvider.get().toolbar_manager_mark() );
this.markToolbarButton.setIcon( ImageProvider.MSG_MARK );
this.workbenchToolbar.addButton( this.markToolbarButton );
this.messageToolbarButtons.add( this.markToolbarButton );
menu = new Menu();
menu.addItem( UIFactory.createMenuItem( ActionRegistry.MARK_AS_READ.get() ) );
menu.addItem( UIFactory.createMenuItem( ActionRegistry.MARK_AS_UNREAD.get() ) );
menu.addItem( new Separator() );
menu.addItem( UIFactory.createMenuItem( ActionRegistry.MARK_AS_DELETED.get() ) );
menu.addItem( UIFactory.createMenuItem( ActionRegistry.MARK_AS_UNDELETED.get() ) );
this.markToolbarButton.setMenu( menu );
separator = new ToolbarSeparator();
this.workbenchToolbar.addItem( separator );
this.messageToolbarItems.add( separator );
toolbarButton = UIFactory.createToolbarButton( ActionRegistry.PRINT_MESSAGE.get() );
this.workbenchToolbar.addButton( toolbarButton );