Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Graphiti » CompositeShape Area Selection
CompositeShape Area Selection [message #1354920] Wed, 14 May 2014 09:36 Go to next message
Simon Sperl is currently offline Simon Sperl
Messages: 6
Registered: May 2014
Junior Member
Situation; I have a ContainerShape that stands for a package and inside I have my classes that I want to drag/move around.

Problem; I can't select multiple classes within the package via the "selection rectangle" (I can only select Shapes that way on the Diagram background) since it immediately starts moving the entire package.

So think changing the selection in ToolBehavior should do the trick;

overriding PictogramElement getSelection(PictogramElement originalPe, PictogramElement[] oldSelection)
to instead select the Diagram does not work since I can't distinguish between selectable/unselectable areas?

GraphicsAlgorithm[] getClickArea(PictogramElement pe)
to only return the title/borders does not work since I now can only move child elements on the clickable area

So how do I work around that?

thanks,
Simon
Re: CompositeShape Area Selection [message #1366477 is a reply to message #1354920] Mon, 19 May 2014 06:29 Go to previous message
Michael Wenz is currently offline Michael Wenz
Messages: 1571
Registered: July 2009
Location: Walldorf, Germany
Senior Member
Hi Simon,

that's tricky.

I do not have a good idea to enable that for the selection tool, unless you
would make the package container shape inactive. But that would also
prohibit adding functionality like move, resize, etc. for a package and I
gues that is not wohat you like...

However, using the marquee tool to do the selection should work, also
multi-select does.

Michael
Previous Topic:Graphiti diagram animation
Next Topic:Layout Service
Goto Forum:
  


Current Time: Wed Jul 23 04:01:03 EDT 2014

Powered by FUDForum. Page generated in 0.03168 seconds