Overlapping Shapes - Problem [message #181345] |
Sat, 14 May 2005 12:08  |
Eclipse User |
|
|
|
Originally posted by: junk.soerenfrey.de
Hi,
I built an editor which can draw various shapes. I built in
copy & paste support. My problem is the following:
If I have multiple shapes which overlap each other and select
them one after another using Shift- or Ctrl-key, copy & paste
them it can occur, that shapes are in the background which where
in foreground before or the other way round. If I select all
EditParts using the Marquee-Tool the problem doesn't occur.
To determine the selected EditParts for copying I use
EditPartViewer.getSelectedEditParts(). I suppose it is a
problem with the selected state of an EditPart, because it
depends on the order the EditParts are selected.
Has anybody an idea about that ?
thx
Soeren
|
|
|
Re: Overlapping Shapes - Problem [message #181413 is a reply to message #181345] |
Sun, 15 May 2005 23:37  |
Eclipse User |
|
|
|
Right, the EditParts are returned in the order of selection. You can always
re-arrange them based on the z-order once you get the list of selected parts
from the viewer.
"Soeren Frey" <junk@soerenfrey.de> wrote in message
news:d658cb$o73$1@news.eclipse.org...
> Hi,
>
> I built an editor which can draw various shapes. I built in
> copy & paste support. My problem is the following:
> If I have multiple shapes which overlap each other and select
> them one after another using Shift- or Ctrl-key, copy & paste
> them it can occur, that shapes are in the background which where
> in foreground before or the other way round. If I select all
> EditParts using the Marquee-Tool the problem doesn't occur.
>
> To determine the selected EditParts for copying I use
> EditPartViewer.getSelectedEditParts(). I suppose it is a
> problem with the selected state of an EditPart, because it
> depends on the order the EditParts are selected.
>
> Has anybody an idea about that ?
>
> thx
>
> Soeren
|
|
|
Powered by
FUDForum. Page generated in 0.27208 seconds