Non-selectable children in XYLayout [message #190841] |
Sat, 06 August 2005 18:19 |
Eclipse User |
|
|
|
Originally posted by: venkataraman.m.tcs.com
Hi, I am setting a subclass of XYLayoutEditPolicy for an
container-editpart(uses XYLayout) and I would like some child figures to
be non-selectable ..i.e.,no selection handles should be shown. But
XYLayoutEditPolicy is by default decorating child-figures with selection
handles (i.e., a ResizableEditPolicy is being installed as
PRIMARY_DRAG_ROLE by default for children in LayoutEditPolicy::activate).
If I tried to override LayoutEditPolicy::createChildEditPolicy by
returning null for non-selectable figures, then
AbstractEditPart::installEditPolicy asserts for null EditPolicy. So then I
thought let me override installEditPolicy for non-selectable editparts and
just do nothing if EditPolicy is null. (I think this is not fine..but).
Please help me with any transparent solution to my query.
Thanks
Venkat
|
|
|
|
Powered by
FUDForum. Page generated in 0.02766 seconds