开发者

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.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜