Skip to main content



      Home
Home » Eclipse Projects » GEF » Blocked ChangeBoundRequests when dragged figures overlap
Blocked ChangeBoundRequests when dragged figures overlap [message #199457] Sat, 15 October 2005 14:00 Go to next message
Eclipse UserFriend
I've modified the demo schema editor into a basic box&line editor.
I want to allow a box to be dragged onto another, though there is no
semantics of 'adding' attached - the boxes should simply overlap.

This works fine, until the dragging mouse location comes into the figure
area of another box. At this point I stop getting ChangeBoundRequests,
and instead get GroupRequests via getOrphanChildren() as a result of a
REQ_ORPHAN_CHILDREN request .

The GroupRequest contains a single edit part in the getEditParts(), and
no extended data.

1. What has stopped the ChangeBoundRequests from coming?

2. Is it possible get the location info out of the group request that I
used to get out of the ChangeBoundRequest?

3. Can anyone point me at any documentation/examples that might be relevant?

Many thanks for any suggestions.
Benedict
Re: Blocked ChangeBoundRequests when dragged figures overlap [message #199515 is a reply to message #199457] Mon, 17 October 2005 00:18 Go to previous message
Eclipse UserFriend
Originally posted by: none.unknown.com

If you're getting orphan requests, that means you have an edit policy
installed on your "boxes" that understands add requests. The shapes example
does what you're trying to.

"benedict heal" <bh@benedictheal.com> wrote in message
news:dirg3t$l3a$1@news.eclipse.org...
>
> I've modified the demo schema editor into a basic box&line editor.
> I want to allow a box to be dragged onto another, though there is no
> semantics of 'adding' attached - the boxes should simply overlap.
>
> This works fine, until the dragging mouse location comes into the figure
> area of another box. At this point I stop getting ChangeBoundRequests,
> and instead get GroupRequests via getOrphanChildren() as a result of a
> REQ_ORPHAN_CHILDREN request .
>
> The GroupRequest contains a single edit part in the getEditParts(), and
> no extended data.
>
> 1. What has stopped the ChangeBoundRequests from coming?
>
> 2. Is it possible get the location info out of the group request that I
> used to get out of the ChangeBoundRequest?
>
> 3. Can anyone point me at any documentation/examples that might be
relevant?
>
> Many thanks for any suggestions.
> Benedict
>
Previous Topic:GEF 3.1.1 update site
Next Topic:IDebugEditorPresentation with GEF Editor possible?
Goto Forum:
  


Current Time: Wed Jun 18 05:45:08 EDT 2025

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

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

Back to the top