Java GMF运行时符号转换为EditPart

Java GMF运行时符号转换为EditPart,java,eclipse-plugin,eclipse-emf,eclipse-gmf,Java,Eclipse Plugin,Eclipse Emf,Eclipse Gmf,如何从org.eclipse.gmf.runtime.notation.impl.ShapeImpl对象接收相应的EditPart?或者如何从ShapeImpl(emf.ecore not runtime)接收相应的EditPart 我认为EditPartViewer的editPart注册表应该能够从视图模型(即形状)返回editPart 我认为应该这样做 EditPart ep = viewer.getEditPartRegistry().get(view);

如何从org.eclipse.gmf.runtime.notation.impl.ShapeImpl对象接收相应的EditPart?或者如何从ShapeImpl(emf.ecore not runtime)接收相应的EditPart

我认为EditPartViewer的editPart注册表应该能够从视图模型(即形状)返回editPart

我认为应该这样做

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