Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Shapes Example
Shapes Example [message #219078] Fri, 07 July 2006 05: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
Previous Topic:Two kinds of connections
Next Topic:Child EditPart Problems - XYLayoutPolicy??
Goto Forum:
  


Current Time: Sat Oct 25 13:37:48 GMT 2014

Powered by FUDForum. Page generated in 0.03121 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software