开发者

GMF runtime notation convert to EditPart

开发者 https://www.devze.com 2023-01-30 06:45 出处:网络
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

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号