java.awt.Point location = replaced.getLocation();
if (replaced instanceof ImageReplacedElement) {
drawImage(((ImageReplacedElement) replaced).getImage(), location.x,
location.y);
} else if (replaced instanceof FormControlReplacementElement) {
SWTFormControl swtControl = ((FormControlReplacementElement) replaced)
.getControl();
swtControl.getSWTControl().setVisible(true);
}
}