ButtonGroup g = (ButtonGroup) w;
g.setItemId(g.getItemId());
menu.add(new SeparatorMenuItem());
String heading = g.getHeadingText();
if (heading != null && heading.length() > 0 && !heading.equals(" ")) {
menu.add(new HeaderMenuItem(heading));
}
Widget con = g.getWidget();
if (con != null && con instanceof HasWidgets) {
HasWidgets widgets = (HasWidgets) con;