@Override protected void createButtonsForButtonBar(final Composite parent){
  for (final Iterator it=buttonDescriptions.iterator(); it.hasNext(); ) {
    final ButtonDescription buttonDescription=(ButtonDescription)it.next();
    createButton(parent,buttonDescription.buttonId,buttonDescription.buttonLabel,buttonDescription.isDefault);
  }
  if (includeDefaultButtons) {
    super.createButtonsForButtonBar(parent);
  }
  hookAfterButtonsCreated();
}

@ Override protected void createButtonsForButtonBar ( final Composite parent ) { for ( final Iterator it = buttonDescriptions . iterator ( ) ; it . hasNext ( ) ; ) { final ButtonDescription buttonDescription = ( ButtonDescription ) it . next ( ) ; createButton ( parent , buttonDescription . buttonId , buttonDescription . buttonLabel , buttonDescription . isDefault ) ; } if ( includeDefaultButtons ) { super . createButtonsForButtonBar ( parent ) ; } hookAfterButtonsCreated ( ) ; }
subclasses may override this method to do their own button bar handling . however , it is usually easier for subclasses to use the setincludedefaultbuttons ( ) and addbuttondescription ( ) methods instead .
