Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » NODE_ROLE & NodeEditPolicy
NODE_ROLE & NodeEditPolicy [message #71324] Tue, 18 March 2003 16:37 Go to next message
Eclipse UserFriend
Originally posted by: melaasar.rational.com

Hello,

I noticed that the NodeEditPolicy is gone. Is there a replacement policy for
deleting a node's connections?

Maged
Re: NODE_ROLE & NodeEditPolicy [message #71343 is a reply to message #71324] Tue, 18 March 2003 17:04 Go to previous message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

The stategy of forwarding delete requests to other EditParts was
problematic, and was making it harder for people to learn GEF.

problems:
1) Outline view does not contain ConnectionEditParts, therefore you must
handle delete in the outline view using some other mechanism. Thus, it
probably makes sense to use the same mechanism everywhere, instead of two.
2) Filtering of connections in the graphical view would mean that certain
connections in the model don't have EditParts, so they wouldn't get deleted.

Of course we had to fix our logic example to work in both the outline and
the graphical view. See the class DeleteCommand in logic example. It still
has to traverse node->connections, but it does so in the *model*. I feel
that this is much safer and easier to understand than before. And, the same
process applies to both trees and graphical views.

"Maged Elaasar" <melaasar@rational.com> wrote in message
news:b57hqv$uoe$1@rogue.oti.com...
> Hello,
>
> I noticed that the NodeEditPolicy is gone. Is there a replacement policy
for
> deleting a node's connections?
>
> Maged
>
>
Previous Topic:Actions
Next Topic:Popup Menu
Goto Forum:
  


Current Time: Wed Feb 05 18:49:06 GMT 2025

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

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

Back to the top