GMF运行时符号转换为EditPart

GMF运行时符号转换为EditPart

问题描述:

如何从org.eclipse.gmf.runtime.notation.impl.ShapeImpl对象接收对应的EditPart?或者我怎样才能从ShapeImpl(emf.ecore not runtime)接收相应的EditPart?GMF运行时符号转换为EditPart

我认为EditPartViewer的editPart Registery应该能够从视图模型(即形状)返回editpart部件。

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

我认为应该这样做。