Skip to main content


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 UserFriend
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: Thu Apr 25 04:32:41 GMT 2024

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

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

Back to the top