Result
updated
双击foo函数后:
就地利用org.eclipse.ptp.pldt.sampleCDTstaticAnalysis/samples下的一些c文件测试生成的call graph效果
Thread
:pserver:anonymous@dev.eclipse.org:/cvsroot/tools/org.eclipse.ptp/tools/org.eclipse.ptp.pldt.sampleCDTstaticAnalysis
Details
MANIFEST.MF:中添加GEF(包括draw2d、gef、zest.core、zest.layout三个插件)
Require - Bundle : org . eclipse . ui ,
org . eclipse . core . runtime ,
org . eclipse . cdt . core ,
org . eclipse . core . resources ,
org . eclipse . ptp . pldt . common ,
org . eclipse . ptp . pldt . mpi . analysis ,
org . eclipse . ptp . pldt . mpi . analysis . cdt ,
org . eclipse . zest . core ,
org . eclipse . zest . layouts ,
org . eclipse . draw2d
plugins.xml:说明Call Graph视图的扩展点
<extension
point = "org.eclipse.ui.views" >
<view
category = "org.eclipse.cdt.ui.views"
class = "org.eclipse.ptp.pldt.sampleCDTstaticAnalysis.view.CallGraphView"
icon = "icons/decision.png"
id = "org.eclipse.ptp.pldt.sampleCDTstaticAnalysis.view.CallGraphView"
name = "Function Call Graph" >
</view>
</extension>
根据Zest Turtorial 编写的主要org.eclipse.ptp.pldt.sampleCDTstaticAnalysis.view.CallGraphView