Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何从 org.eclipse.gmf.runtime.notation.impl.ShapeImpl 对象接收相应的 EditPart?或者我如何从 ShapeImpl(emf.ecore not runtime) 接收相应的 EditPart?
我认为 EditPartViewer 的 editPart Registery 应该能够从 View 模型(即形状)中返回编辑部分。
EditPart ep = viewer.getEditPartRegistry().get(view);
我认为应该这样做。