getModelChildren on AbstractEditPart [message #33842] |
Mon, 21 October 2002 09:19  |
Eclipse User |
|
|
|
hello again,
actually what confuses me, getModelChildren method on AbstractEditPart
class. this is really confusing, i would expect that, model tree(in my case
model elements are structured like a tree) includes its own children and
stuff. i don't know i'm still confused, why do we need to implement
acquiring model's children in editpart?
thanx anyway,
ozgur
|
|
|
Re: getModelChildren on AbstractEditPart [message #33905 is a reply to message #33842] |
Mon, 21 October 2002 09:54  |
Eclipse User |
|
|
|
Originally posted by: hudsonr.us.eye-bee-em.com
Your model is not forced to conform to some interface like
DefaultMutableTreeNode, for example (yeah, I know, that's a Class).
Therefore, you must provide your model's children by overriding this method
in your EditPart. This is also a better place to do things like sorting or
filtering, which don't belong in your model. This method is on
AbstractEditPart because it is responsible for constructing its immediate
children.
"Ozgur Kurt" <ozgurkurt@hotmail.com> wrote in message
news:ap0t9t$pji$1@rogue.oti.com...
> hello again,
>
> actually what confuses me, getModelChildren method on AbstractEditPart
> class. this is really confusing, i would expect that, model tree(in my
case
> model elements are structured like a tree) includes its own children and
> stuff. i don't know i'm still confused, why do we need to implement
> acquiring model's children in editpart?
>
> thanx anyway,
> ozgur
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.03588 seconds