Skip to main content



      Home
Home » Eclipse Projects » GEF » Is there any replacement for NodeEditPolicy?
Is there any replacement for NodeEditPolicy? [message #79223] Wed, 14 May 2003 08:40 Go to next message
Eclipse UserFriend
Originally posted by: bkandan.selectica.com

hi all,
i recently migrate to GEF2.1. In the previous version i have used
nodeeditpolicy for deleting the connections when the nodes are deleted, but
now i c that the class has been removed. is there a replacement for
nodeeditpolicy or am i missing something???

balaji
Re: Is there any replacement for NodeEditPolicy? [message #79237 is a reply to message #79223] Wed, 14 May 2003 09:21 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: lauri.pesonen.iki.fi

"Balaji" <bkandan@selectica.com> writes:

> hi all,
> i recently migrate to GEF2.1. In the previous version i have used
> nodeeditpolicy for deleting the connections when the nodes are deleted, but
> now i c that the class has been removed. is there a replacement for
> nodeeditpolicy or am i missing something???
>

No, there's no replacement for it. You'll have to delete the connections
yourself in your node deletion command. See the logic designer for an
example.

> balaji
>
>

--
Lauri
Re: Is there any replacement for NodeEditPolicy? [message #79250 is a reply to message #79237] Wed, 14 May 2003 09:41 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: bkandan.selectica.com

i looked at it..there is no code for deleteing connections written
in the editpolicies or the commands...

balaji

"Lauri Pesonen" <lauri.pesonen@iki.fi> wrote in message
news:gfoof25hde5.fsf@elan.cs.hut.fi...
> "Balaji" <bkandan@selectica.com> writes:
>
> > hi all,
> > i recently migrate to GEF2.1. In the previous version i have used
> > nodeeditpolicy for deleting the connections when the nodes are deleted,
but
> > now i c that the class has been removed. is there a replacement for
> > nodeeditpolicy or am i missing something???
> >
>
> No, there's no replacement for it. You'll have to delete the connections
> yourself in your node deletion command. See the logic designer for an
> example.
>
> > balaji
> >
> >
>
> --
> Lauri
Re: Is there any replacement for NodeEditPolicy? [message #79263 is a reply to message #79250] Wed, 14 May 2003 09:46 Go to previous messageGo to next message
Eclipse UserFriend
There's a deleteConnections(LogicSubpart) method in the DeleteCommand for the
logic example.


Balaji wrote:

> i looked at it..there is no code for deleteing connections written
> in the editpolicies or the commands...
>
> balaji
>
> "Lauri Pesonen" <lauri.pesonen@iki.fi> wrote in message
> news:gfoof25hde5.fsf@elan.cs.hut.fi...
>
>>"Balaji" <bkandan@selectica.com> writes:
>>
>>
>>>hi all,
>>> i recently migrate to GEF2.1. In the previous version i have used
>>>nodeeditpolicy for deleting the connections when the nodes are deleted,
>
> but
>
>>>now i c that the class has been removed. is there a replacement for
>>>nodeeditpolicy or am i missing something???
>>>
>>
>>No, there's no replacement for it. You'll have to delete the connections
>>yourself in your node deletion command. See the logic designer for an
>>example.
>>
>>
>>>balaji
>>>
>>>
>>
>>--
>> Lauri
>
>
>
Re: Is there any replacement for NodeEditPolicy? [message #79291 is a reply to message #79263] Wed, 14 May 2003 10:06 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: bkandan.selectica.com

sorry, i didnt expect command in the model package...i only looked at
model.command package...
thanks for figuring it out...

balaji

"Eric Bordeau" <ebordeau@us.ibm.com> wrote in message
news:b9thc6$bp$1@rogue.oti.com...
> There's a deleteConnections(LogicSubpart) method in the DeleteCommand for
the
> logic example.
>
>
> Balaji wrote:
>
> > i looked at it..there is no code for deleteing connections written
> > in the editpolicies or the commands...
> >
> > balaji
> >
> > "Lauri Pesonen" <lauri.pesonen@iki.fi> wrote in message
> > news:gfoof25hde5.fsf@elan.cs.hut.fi...
> >
> >>"Balaji" <bkandan@selectica.com> writes:
> >>
> >>
> >>>hi all,
> >>> i recently migrate to GEF2.1. In the previous version i have used
> >>>nodeeditpolicy for deleting the connections when the nodes are deleted,
> >
> > but
> >
> >>>now i c that the class has been removed. is there a replacement for
> >>>nodeeditpolicy or am i missing something???
> >>>
> >>
> >>No, there's no replacement for it. You'll have to delete the connections
> >>yourself in your node deletion command. See the logic designer for an
> >>example.
> >>
> >>
> >>>balaji
> >>>
> >>>
> >>
> >>--
> >> Lauri
> >
> >
> >
>
Re: Is there any replacement for NodeEditPolicy? [message #79337 is a reply to message #79223] Wed, 14 May 2003 10:37 Go to previous message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

This EditPolicy was deleted because it doesn't work in all cases.
Specifically, in the outline view, there are no connection editpart, so
there is no one to forward to. But also, in the graphical view, the user
may be filtering some connections he doesn't want to see. In general, the
only editpart that you can trust to be around is your parent.

The other reason for deleting it was simplicity for new developers. The
example became easier to understand after this change was made.

"Balaji" <bkandan@selectica.com> wrote in message
news:b9tdhd$snj$1@rogue.oti.com...
> hi all,
> i recently migrate to GEF2.1. In the previous version i have used
> nodeeditpolicy for deleting the connections when the nodes are deleted,
but
> now i c that the class has been removed. is there a replacement for
> nodeeditpolicy or am i missing something???
>
> balaji
>
>
Previous Topic:ITSO residents required for the redbook Eclipse Development using GEF and the EMF
Next Topic:placing dialog relative to editor
Goto Forum:
  


Current Time: Tue Jul 15 16:11:58 EDT 2025

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

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

Back to the top