Shapes Example [message #219078] |
Fri, 07 July 2006 01:35 |
Eclipse User |
|
|
|
Originally posted by: reinalt.gmail.com
I hv changed the Container figure as follows :
protected IFigure createFigure() {
Figure f = new Figure();
f.setLayoutManager(new FlowLayout());
f.setOpaque(true);
return f;
}
and the layout policy is extended FlowLayoutEditPolicy:
but in the
getCreateCommand(CreateRequest Request)
{
.....
EditPart after = getInsertionReference(request);
.....
}
getInsertionReference always returns null.
So a child doesn't get added....
Has sm1 faced a similar problem... how to go about it???
reinalt
|
|
|
Powered by
FUDForum. Page generated in 0.05926 seconds