for (final SearchEngine engine : fgSearchEngines) {
Button button = new Button(contentMargin, SWT.RADIO);
button.setText(engine.getName());
if (StringUtils.isSet(engine.getIconPath())) {
LocalResourceManager resources = new LocalResourceManager(JFaceResources.getResources(), button);
button.setImage(OwlUI.getImage(resources, OwlUI.getImageDescriptor(engine.getPluginId(), engine.getIconPath())));
}
button.addSelectionListener(new SelectionAdapter() {
@Override
public void widgetSelected(SelectionEvent e) {