Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Selection of parent through its children
Selection of parent through its children [message #231714] Wed, 14 March 2007 23:30 Go to next message
Nacef is currently offline NacefFriend
Messages: 29
Registered: July 2009
Junior Member
Hi all,

I have a diagram where I have 2 kinds of parts :
- a parent that is playing the role of a container
- children parts that are contained in each parent part.

When clicking on a child I want the parent to be selected. The problem
appears that the children are covering all the surface for the parent on
the diagram, so the parent is not directly hit. If I have an empty
container or a not completely filled parent I can select it and have it
surrounded by the selection handles.

I want to be able to select the parent in all cases : hitting it
directly if it is empty or if there is spaces between child, or hitting
any child belonging to the parent and so have the parent selected.

Thank you all
Re: Selection of parent through its children [message #231800 is a reply to message #231714] Sat, 17 March 2007 16:17 Go to previous message
Eclipse UserFriend
Originally posted by: none.unknown.com

Return false for EditPart#isSelectable() for all child editparts.

"Nacef LABIDI" <nacef.l@gmail.com> wrote in message
news:eta0h6$f3u$1@utils.eclipse.org...
> Hi all,
>
> I have a diagram where I have 2 kinds of parts :
> - a parent that is playing the role of a container
> - children parts that are contained in each parent part.
>
> When clicking on a child I want the parent to be selected. The problem
> appears that the children are covering all the surface for the parent on
> the diagram, so the parent is not directly hit. If I have an empty
> container or a not completely filled parent I can select it and have it
> surrounded by the selection handles.
>
> I want to be able to select the parent in all cases : hitting it directly
> if it is empty or if there is spaces between child, or hitting any child
> belonging to the parent and so have the parent selected.
>
> Thank you all
Previous Topic:GEF and SWG
Next Topic:Advanced Zooming
Goto Forum:
  


Current Time: Thu Aug 15 01:58:59 GMT 2024

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

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

Back to the top