private void populateMenu() {
for ( final Iterator<Object> it = this.list.iterator(); it.hasNext(); ) {
final Object object = it.next();
if ( object instanceof IContributionItem ) {
final IContributionItem item = (IContributionItem) object;
item.fill( this.dropDownMenu,
-1 );
} else {
final IAction action = (IAction) object;
final ActionContributionItem item = new ActionContributionItem( action );
item.fill( this.dropDownMenu,
-1 );
}
}
final MenuItem[] items = this.dropDownMenu.getItems();
for ( int i = 0; i < items.length; i++ ) {