Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » selecting and moving children
selecting and moving children [message #196037] Thu, 15 September 2005 13:39 Go to next message
Eclipse UserFriend
Originally posted by: jerry.coston.gmail.com

New to GEF - still fighting my way through the abstraction layers and
spending half my time in the example code.

I have a diagram "D" with a child object "O". "O" has a child, "C". My
diagram edit part has edit policies for the COMPONENT_ROLE and the
LAYOUT_ROLE, very similar to the Shapes Example.
My ObjectEditPart "O" has edit policies for COMPONENT_ROLE,
GRAPHICAL_NODE_ROLE, CONTAINER_ROLE and LAYOUT_ROLE.
Both of these layout roles are extensions of XYLayoutEditPolicy.
My Child edit part has edit policies for the COMPONENT_ROLE and the
GRAPHICAL_NODE_ROLE.

I can move "O" around freely within "D" with no problem. I can also
create an instance of "C" within "O". At the time of creation, "C" is
selected, and by grabbing its border, I'm able to move it around within
"O". However, once "C" is deselected, I'm unable to select it again.
When I click on it, its parent, "O" is selected. Could someone please
tell me what I've overlooked here.

Thanks in advance

Jerry
Re: selecting and moving children [message #196055 is a reply to message #196037] Thu, 15 September 2005 18:46 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jerry.coston.gmail.com

More information -
Child item "C" is not getting selected. (setSelection() is never called),
so it's not just a feedback issue.

However, I can select it by dragging a rectangle around it if I begin my
drag from outside its parent.

I've scoured this newsgroup and I see several posts that are related to
this issue, but none that hit it on the head and give a thorough
explanation of what is required.

Thanks

Jerry
Re: selecting and moving children [message #196077 is a reply to message #196055] Thu, 15 September 2005 22:44 Go to previous message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

It sounds like either
a) the selection tool never targets that editpart as the mouse moves
b) the editpart does not return a SelectEditPartTracker or subclass of it

"Jerry Coston" <jerry.coston@gmail.com> wrote in message
news:da391c8d9450da3473ec73f887c8ce16$1@www.eclipse.org...
> More information - Child item "C" is not getting selected. (setSelection()
> is never called), so it's not just a feedback issue.
> However, I can select it by dragging a rectangle around it if I begin my
> drag from outside its parent.
>
> I've scoured this newsgroup and I see several posts that are related to
> this issue, but none that hit it on the head and give a thorough
> explanation of what is required.
>
> Thanks
>
> Jerry
>
Previous Topic:Document typo?
Next Topic:a selection problem
Goto Forum:
  


Current Time: Tue May 07 01:27:57 GMT 2024

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

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

Back to the top