Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Overlapping Shapes - Problem
Overlapping Shapes - Problem [message #181345] Sat, 14 May 2005 16:08 Go to next message
Eclipse UserFriend
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] Mon, 16 May 2005 03:37 Go to previous message
Pratik Shah is currently offline Pratik ShahFriend
Messages: 1077
Registered: July 2009
Senior Member
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
Previous Topic:is it possible to do multi-selection?
Next Topic:"Special selecting" of an editPart
Goto Forum:
  


Current Time: Sat Apr 20 02:12:27 GMT 2024

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

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

Back to the top