@Override
protected void addChildVisual(EditPart childPart, int index) {
// update "index" to put Button-s after ButtonBar figure
{
Figure panelFigure = getContentPane();
Figure barFigure = getFigure();
int barFigureIndex = panelFigure.getChildren().indexOf(barFigure);
index += barFigureIndex + 1;
}
// do add
super.addChildVisual(childPart, index);