Skip to main content



      Home
Home » Eclipse Projects » GEF » getModelChildren on AbstractEditPart
getModelChildren on AbstractEditPart [message #33842] Mon, 21 October 2002 09:19 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
>
>
Previous Topic:Connection Anchors base on Mouse Click
Next Topic:need some help, new to gef
Goto Forum:
  


Current Time: Mon May 05 05:38:05 EDT 2025

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

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

Back to the top