GMF runtime notation convert to EditPart
How can I receive from org.eclipse.gmf.runtime.notation.impl.ShapeImpl Object the corresponding 开发者_如何学JAVAEditPart? Or how can I receive from ShapeImpl(emf.ecore not runtime) the corresponding EditPart?
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.
精彩评论