{
IFigure child = ((GraphicalEditPart) childEditPart).getFigure();
if (child == null)
return;
ShapeModel shapeModel = (ShapeModel)childEditPart.getModel();
ShapePresentation shapePresentation = shapeModel.getShapePresentation();
ContainerShapePresentation parentPresentation = getParentContainer(shapePresentation);
IFigure parentFigure = parentPresentation.getFigure();
Object layoutConstraint = ShapeUtil.getLayoutConstraint(shapePresentation,
parentPresentation.getLayout());
// find the offset for figure in presentation without an editpart