Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Non-selectable children in XYLayout
Non-selectable children in XYLayout [message #190841] Sat, 06 August 2005 18:19 Go to next message
Eclipse UserFriend
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
Re: Non-selectable children in XYLayout [message #190849 is a reply to message #190841] Sat, 06 August 2005 18:27 Go to previous message
Eclipse UserFriend
Originally posted by: venkataraman.m.tcs.com

Ignore my post. AbstractEditPart::installEditPolicy is accepting a null
editpolicy for a role.

~Venkat
Previous Topic:Displaying StringList in a Figure.
Next Topic:Misconnection to source EditPart
Goto Forum:
  


Current Time: Tue Dec 03 08:50:51 GMT 2024

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

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

Back to the top