Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » XYLayoutEditPolicy - Extend to Select Additional EditParts
XYLayoutEditPolicy - Extend to Select Additional EditParts [message #465754] Wed, 04 April 2007 16:03 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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?
Previous Topic:static PropertyDescriptor Validator-problems
Next Topic:Always restore the same perspective at the application startup
Goto Forum:
  


Current Time: Fri Apr 26 00:27:03 GMT 2024

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

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

Back to the top