Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Retrieve point of selection
Retrieve point of selection [message #781294] Fri, 20 January 2012 22:44
Russ Loucks is currently offline Russ LoucksFriend
Messages: 11
Registered: December 2011
Junior Member
I have a GEF editor (started with the Shapes example) that includes a
digram edit part (extends AbstractGraphicalEditPart). I'm implementing
copy n paste of objects from editor instance to editor instance.

In the paste action (which extends SelectionAction and implements
ISelectionChangedListener), is it possible to determine the point of
selection?

The 'paste' action is only enabled after someone clicks in an open area
of the diagram figure. The paste action receives a
'selectionChanged(SelectionChangedEvent event)' callback but I can't
figure out from the event.source where the user clicked....

Any clues?
Previous Topic:Zest: Multiple distinguishable connections
Next Topic:[zest2.0] Status of zooming in zest 2.0
Goto Forum:
  


Current Time: Sun Nov 23 00:03:42 GMT 2014

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

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