XYLayoutEditPolicy - Extend to Select Additional EditParts [message #465754] |
Wed, 04 April 2007 16:03 |
Eclipse User |
|
|
|
Originally posted by: david.cooper.lawson.com
I'm currently using a subclass of XYLayoutEditPolicy to manage move and
resize actions on a particular edit part in my application.
I would like to enhance this so that, in some cases, when an object is
selected by the user in the editor, I can tell the editor to also
simultaneously select certain other parts.
For example, in one case, I would like to select a set of other parts, so
that when the primary selected part is moved across the editor surface, the
other selected parts follow. (Akin to what would happen when CTRL is clicked
and multiple items are selected.)
I cannot make them child parts, becuase in other cases, I need to keep the
ability to select and move a part throughout the editor surface (I had run
into the problem of being unable to drag a child outside the parent's
bounds.)
Any clues would be appreciated. Examples would be great.
Thanks
|
|
|
Re: XYLayoutEditPolicy - Extend to Select Additional EditParts [message #465801 is a reply to message #465754] |
Thu, 05 April 2007 11:45 |
Eclipse User |
|
|
|
Originally posted by: lamont_gilbert.rigidsoftware.com
On Wed, 04 Apr 2007 12:03:41 -0400, Dave C wrote:
> I'm currently using a subclass of XYLayoutEditPolicy to manage move and
> resize actions on a particular edit part in my application.
>
> I would like to enhance this so that, in some cases, when an object is
> selected by the user in the editor, I can tell the editor to also
> simultaneously select certain other parts.
>
> For example, in one case, I would like to select a set of other parts, so
> that when the primary selected part is moved across the editor surface, the
> other selected parts follow. (Akin to what would happen when CTRL is clicked
> and multiple items are selected.)
>
> I cannot make them child parts, becuase in other cases, I need to keep the
> ability to select and move a part throughout the editor surface (I had run
> into the problem of being unable to drag a child outside the parent's
> bounds.)
>
> Any clues would be appreciated. Examples would be great.
>
> Thanks
Is this really a 'selection' though? It sounds more like a 'linking'. If
you hit delete will all items be deleted as well? And copy, will they all
be copied? Or is it just move where they are considered as one?
|
|
|
Powered by
FUDForum. Page generated in 0.03416 seconds