2

How can I receive from org.eclipse.gmf.runtime.notation.impl.ShapeImpl Object the corresponding EditPart? Or how can I receive from ShapeImpl(emf.ecore not runtime) the corresponding EditPart?

skaffman
  • 398,947
  • 96
  • 818
  • 769
Le_Coeur
  • 1,521
  • 5
  • 28
  • 44

1 Answers1

4

I think EditPartViewer's editPart Registery should be able to return you the editpart from the View model (ie shape).

EditPart ep = viewer.getEditPartRegistry().get(view);

I think that should do it.

Tuukka Lindroos
  • 1,270
  • 10
  • 14