NodeList images = bc.getElement().getElementsByTagName("img");
if (images.getLength() > 0) {
Element img = (Element) images.item(0);
String uri = c.getNamespaceHandler().getImageSourceURI(img);
ImageResource res = uac.getImageResource(uri);
SWTFSImage fsi = (SWTFSImage) res.getImage();
// copy the image to prevent disposal, and apply a disabled
// effect if needed
_image = new Image(button.getDisplay(), fsi.getImage(), (bc
.isEnabled() ? SWT.IMAGE_COPY : SWT.IMAGE_DISABLE));
button.setImage(_image);
}
}