REQ_DELETE_DEPENDANT [message #189918] |
Mon, 01 August 2005 09:33 |
Eclipse User |
|
|
|
Originally posted by: sidney.lee.ibs.net
Hi!
Didn't get a response to this
news://news.eclipse.org:119/42E10BE8.9070103@ibs.net so I thought I
would repost it here:
I would like to adjust the constraints of siblings after a component has
been resized or deleted. For *resize*, I have implemented
getResizeChildrenCommand(ChangeBoundsRequest) in my XYLayoutEditPolicy -
which works perfectly. Now I would like to do the same for *delete*
using getDeleteDependantCommand(Request) since, according to the
documentation for ConstrainedLayoutEditPolicy and REQ_DELETE_DEPENDANT,
"complex layouts may decide to adjust the constraints of the remaining
children". My problem is that I can't seem to get a REQ_DELETE_DEPENDANT
when I delete a component and seem only to be able to delete anything if
I have a ComponetEdiPolicy implement createDeleteCommand and have it
installed for the COMPONENT_ROLE.
Any suggestion?
Many Thanks (as always)!
|
|
|
Powered by
FUDForum. Page generated in 0.02697 seconds