there is
protected void addChildVisual(EditPart childEditPart, int
index) { IFigure child =
((GraphicalEditPart)childEditPart).getFigure();
getContentPane().add(child, index); }
which leads to the IndexOutOfBoundsException later on in
Figure.add(), because the children are "kidnapped" and
there are less than GEF supposes.
It seems to me GEF does not like it when reparenting
children this way.
Is there another way to achieve it? From a user point of
view I would have thought (and actually did) that when
returning a figure from createFigure() that already has a
parent, that might be respected and a
new parent only set when it is null. Thoughts?