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 13:36 Go to next message
Simon Sperl is currently offline Simon Sperl
Messages: 12
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 10:29 Go to previous message
Michael Wenz is currently offline Michael Wenz
Messages: 1618
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: Fri Oct 24 13:08:25 GMT 2014

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

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