Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » how to get all the selected editparts
how to get all the selected editparts [message #185833] Thu, 30 June 2005 12:54 Go to next message
Eclipse UserFriend
Originally posted by: yabing.crimsonlogic.com

Hi,

if i multiple selecte several figures at one time, how to get all the
editparts of the selected figures? is there any method to invoke to get
them directly?

the other question is that if I select one figure in the canvas, and I
want the program automatically select some related figures. how can i
implement this feature? do i need to manually invoke setSelected()? or
there is another correct way to do it? Thanks a lot!
Re: how to get all the selected editparts [message #186167 is a reply to message #185833] Sat, 02 July 2005 11:40 Go to previous message
Andreas Holtz is currently offline Andreas HoltzFriend
Messages: 53
Registered: July 2009
Member
yabing schrieb am 30.06.2005 14:54:
> Hi,
>
> if i multiple selecte several figures at one time, how to get all the
> editparts of the selected figures? is there any method to invoke to get
> them directly?

within your action (if it extends SeletionAction) you can use
getSelectedObjects()

Andreas
Previous Topic:F2 key not working!!!
Next Topic:How to get the selected resources in the Package Exlporer
Goto Forum:
  


Current Time: Fri Apr 19 13:35:30 GMT 2024

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

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

Back to the top