Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Selecting multiple elements in a diagram
Selecting multiple elements in a diagram [message #145107] Wed, 01 August 2007 19:43 Go to next message
Eclipse UserFriend
Originally posted by: apple.viriyakattiyaporn.utoronto.ca

Hi,

When I use SelectionTool to select multiple elements in a diagram. How
do I retrieve those selected elements? In SelectionTool, I saw only
getTargetEditPart and getTargetRequest, which seem to return a single
object not a list. Can you give me a hint on that, please?

Thanks a lot.
Petcharat
Re: Selecting multiple elements in a diagram [message #145123 is a reply to message #145107] Thu, 02 August 2007 08:59 Go to previous message
Boris Blajer is currently offline Boris BlajerFriend
Messages: 217
Registered: July 2009
Senior Member
Hi Petcharat,

Use EditPartViewer#getSelectedEditParts().

Best regards,
Boris


Petcharat Viriyakattiyaporn wrote:
> Hi,
>
> When I use SelectionTool to select multiple elements in a diagram. How
> do I retrieve those selected elements? In SelectionTool, I saw only
> getTargetEditPart and getTargetRequest, which seem to return a single
> object not a list. Can you give me a hint on that, please?
>
> Thanks a lot.
> Petcharat
Previous Topic:Property Value should change automaticaly
Next Topic:How to change the generated diagram package name?
Goto Forum:
  


Current Time: Sat Jul 27 12:47:20 GMT 2024

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

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

Back to the top