[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.tools.gef] Re: Issue of Parent child Realtionship

This all depends how you visualize your model.  If you visualize the "Tree"
as a single item, then it would be contained as single item in the List .
Otherwise, you would need to consolidate or wrap your model to conform to
the GEF api.

There are number of examples of the getModelChildren api implementation:
org.eclipse.gef.examples.ediagram.outline#ClassifierTreeEditPart
org.eclipse.gef.internal.ui.palette.editparts#PaletteEditPart

-Steve

"Gaurav B" <gaurav.bagga@xxxxxxxxxx> wrote in message
news:77e695bfb12c00965bb639a1a5725a2f$1@xxxxxxxxxxxxxxxxxx
>
> There is a parent , that has got only one child .
> And that child has got many childrens.
> The return type of getModelChildren() is List. But the return type in the
> model is the object of the child itself i.e. getTree() which returns Tree,
> not EList Type.
>
> What i have done in create command i have created an object of
> EObjectContainmentList() and provided the values, but this also doesnt
> works.
>
> How to go about it?
>
> Thanks
> Gaurav
>