Skip to main content



      Home
Home » Eclipse Projects » GEF » OrphanChildCommand
OrphanChildCommand [message #102782] Wed, 29 October 2003 21:00 Go to next message
Eclipse UserFriend
Originally posted by: snowice.asiamail.com

Hi,
I would like to know what's is the rold of the OrphanChildCommand in the
Logic example, in terms of implementation, it looks highly similar to the
DeleteCommand. When is it actually invoked?

Thanks.
regards,
Evon
Re: OrphanChildCommand [message #102795 is a reply to message #102782] Wed, 29 October 2003 21:21 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: qiuyunzhong.hotmail.com

It's invoked by LogicContainerEditPolicy when you remove a child from the
container.When you delete some components, deletecommand will be called
instead.
"Evon" <snowice@asiamail.com> ??????:bnprc3$qrf$1@eclipse.org...
> Hi,
> I would like to know what's is the rold of the OrphanChildCommand in the
> Logic example, in terms of implementation, it looks highly similar to the
> DeleteCommand. When is it actually invoked?
>
> Thanks.
> regards,
> Evon
>
Re: OrphanChildCommand [message #102804 is a reply to message #102782] Wed, 29 October 2003 22:57 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

The difference in orphan and delete is that connection can be left alone
when orphaning, since you know the object will still exist somewhere else.

"Evon" <snowice@asiamail.com> wrote in message
news:bnprc3$qrf$1@eclipse.org...
> Hi,
> I would like to know what's is the rold of the OrphanChildCommand in the
> Logic example, in terms of implementation, it looks highly similar to the
> DeleteCommand. When is it actually invoked?
>
> Thanks.
> regards,
> Evon
>
Re: OrphanChildCommand [message #102821 is a reply to message #102804] Thu, 30 October 2003 00:04 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: snowice.asiamail.com

Randy Hudson wrote:

> The difference in orphan and delete is that connection can be left alone
> when orphaning, since you know the object will still exist somewhere else.

the object will still exist? where will it exist? and what's the point of
seemingly deleting it and letting it exist somewhere?

regards,
Evon
Re: OrphanChildCommand [message #102833 is a reply to message #102821] Thu, 30 October 2003 00:30 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: qiuyunzhong.hotmail.com

In my opinion,when you call orphanchildcommand, you remove child from the
container to some where else, for example,another container.But the child is
still exist in some palace you lay it ,if it has connection to the container
then the connection is still remained.When you delete a child connected to
others, the connection will be deleted with the child.
"Evon" <snowice@asiamail.com> ??????:bnq654$4du$1@eclipse.org...
> Randy Hudson wrote:
>
> > The difference in orphan and delete is that connection can be left alone
> > when orphaning, since you know the object will still exist somewhere
else.
>
> the object will still exist? where will it exist? and what's the point of
> seemingly deleting it and letting it exist somewhere?
>
> regards,
> Evon
>
Re: OrphanChildCommand [message #102843 is a reply to message #102833] Thu, 30 October 2003 01:33 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: snowice.asiamail.com

I got it! Thanks.

tina wrote:

> In my opinion,when you call orphanchildcommand, you remove child from the
> container to some where else, for example,another container.But the child is
> still exist in some palace you lay it ,if it has connection to the container
> then the connection is still remained.When you delete a child connected to
> others, the connection will be deleted with the child.
> "Evon" <snowice@asiamail.com> ??????:bnq654$4du$1@eclipse.org...
> > Randy Hudson wrote:
> >
> > > The difference in orphan and delete is that connection can be left alone
> > > when orphaning, since you know the object will still exist somewhere
> else.
> >
> > the object will still exist? where will it exist? and what's the point of
> > seemingly deleting it and letting it exist somewhere?
> >
> > regards,
> > Evon
> >
Re: OrphanChildCommand [message #102892 is a reply to message #102782] Thu, 30 October 2003 11:34 Go to previous message
Eclipse UserFriend
Originally posted by: Lamont_Gilbert.Rigidsoftware.com

On Thu, 30 Oct 2003 02:00:35 +0000, Evon wrote:

> Hi,
> I would like to know what's is the rold of the OrphanChildCommand in
> the
> Logic example, in terms of implementation, it looks highly similar to
> the DeleteCommand. When is it actually invoked?
>
> Thanks.
> regards,
> Evon


Orphan occurs for instance when you have 2 container Edit Parts in the
display. And you drag a child from within its container, over into
another container. That will be an orphan-add operation.

I don't see how
connections can possibly survive an EditPart changing containers though...

I found no proactical use for orphan and so far I am not using it. Perhaps
as I near completion I will find a usage.
Previous Topic:Focus-related exception
Next Topic:[ANN] Requirements for rulers in graphical editors
Goto Forum:
  


Current Time: Wed May 07 15:37:02 EDT 2025

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

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

Back to the top