[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.swt] Problems with an EditPartFactory in GEF

Hi,

I want to use a self-written EditPartFactory to instantiate the children
EditParts to display an XML document as a graphical structure.

When I set the DOM tree like model as the model for the EditPart and
overwrite the getModelChildren() method of AbstractEditPart, it instantiates
the EditParts, but the created Figures do have the same parent-child
structure that the EditParts have.

This is not what I want, I want to display them separatel in a different
panel. But when I try to set this by calling on the figure setParent() I
will get an exception.

Can someone tell me, how this can be done? I don't want to lose the feature
of the automatic display of all the children with the getModelChildren
method.

Thanks in advance D. Tomsu