问题标签 [codan]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
java - 如何将 eclipse-cdt codan 生成的控制流图保存为文件(最好是 PNG 或 JPEG)?
我想将 eclipse-cdt codan 从一些 C 源代码中生成的控制流图保存为 png/jpeg 文件。我在我的代码中使用 codan 作为库,所以它不是 eclipse 插件。到目前为止,我已经能够使用下面的代码成功获取 cfg。
这样做,我有一个builder
包含控制流图节点。问题是如何获得该图的输出图像。库中codan
包含一个org.eclipse.cdt.codan.ui.cfgview
。但我找不到任何解决我的问题的方法。我发现 cfgview 中的文件严重依赖 Eclipse 工作区和环境。