|get UML2 Element from its EditPart [message #704029]
||Thu, 28 July 2011 07:43
| A Vernotte
Registered: June 2011
I used to create plug-ins for Papyrus 1. When I wanted to get the UML2 Element pointed by the cursor, I just had to get the current selection from eclipse, a structuredSelection, which was containing an EditPart. Then, to retrieve the highlighted UML2 Element from this EditPart, there was a very comfortable method : getUML2Element().
I'm currently trying to migrate my plug-ins to Papyrus MDT, and I still can get the EditPart from the current Selection (although it is now called OperationForClassEditPart), but I can't find any method to get the corresponding UML2 Element from it.
Is there someone who could help me do that ?
[Updated on: Thu, 28 July 2011 11:18]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.02243 seconds