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.
我正在开发一个 Eclipse 插件,我正在使用 GEF 和 Zest 来生成视图中的图形。
我已经扩展org.eclipse.gef.zest.fx.ui.parts.ZestFxUiView了 GEF 插件中已经提供的功能。使用正确的边成功生成了图,但它们不是有向的。
org.eclipse.gef.zest.fx.ui.parts.ZestFxUiView
我错过了什么?
您需要在 IGraphAttributesProvider#getEdgeAttributes() 中提供正确的属性,即指向目标节点的箭头的 ZestProperties#TARGET_DECORATION。
存储库中有一个可用的示例:https ://github.com/eclipse/gef/blob/master/org.eclipse.gef.zest.examples.jface/src/org/eclipse/gef/zest/examples /jface/JFaceEdgeDecorationExample.java