[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.tools.gef] Re: Blocked ChangeBoundRequests when dragged figures overlap
|
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@xxxxxxxxxxxxxxxx> wrote in message
news:dirg3t$l3a$1@xxxxxxxxxxxxxxxxxxx
>
> 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
>