[CHANGE] Delete has been changed [message #50566] |
Thu, 19 December 2002 11:10 |
Eclipse User |
|
|
|
Originally posted by: hudsonr.us.eye-bee-em.com
As part of our "simplification" effort, Deletes (REQ_DELETE) are no longer
forwarded to EditParts other than the parts that are selected. Previously,
both ContainerEditPolicy and NodeEditPolicy would re-dispatch the request to
childen and connections. This approach does not work accross multiple types
of Viewers, and such behavior (determining which connections to break as a
result of something being deleted) should be int your Command implementation
where it belongs. The Logic example demonstrates this.
CHANGES:
ContainerEditPolicy still exists but does nothing (previously it performed
forwarding). This class can still be subclassed to handle model-specific
aspects of Add/Delete/Orphan/Create.
NodeEditPolicy is deleted. All it did was forward delete to the
connections.
DeleteRequest has been deleted. DeleteRequest extended GroupRequest to track
the contributions to the overall delete action. This is no longer necessary
because forwarding of the request does not occur. GroupRequest is used now
instead.
|
|
|
Powered by
FUDForum. Page generated in 0.02995 seconds