java 方法调用链的 Eclipse 可视化

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/4814416/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-30 08:09:01  来源:igfitidea点击:

Eclipse visualization for chain of method call

javaeclipse-pluginvisualization

提问by Marcin Sanecki

I am looking for a useful eclipse plugin that can:

我正在寻找一个有用的 Eclipse 插件,它可以:

  • visualize chain of methods call (Java)
  • visualize data types hierarchy (Java)
  • 可视化方法调用链(Java)
  • 可视化数据类型层次结构 (Java)

Could you recommend anything?

你能推荐什么吗?

回答by myusuf3

You could just also right click the method your interested in and click open call hierarchy or show references in the workspace project or working set. These are default with eclipse.

您也可以右键单击您感兴趣的方法,然后单击打开调用层次结构或在工作区项目或工作集中显示引用。这些是 eclipse 的默认设置。

回答by Fredy Bello

You could use a tool called Eclipse Diver

您可以使用名为Eclipse Diver的工具

It allows to reverse sequence diagram for any method, user manual here

它允许反转任何方法的序列图,用户手册在这里

回答by fgysin reinstate Monica

Have a look at Codemap:
http://scg.unibe.ch/research/softwarecartography

看看代码图http: //scg.unibe.ch/research/softwarecartography

--> Eclipse plugin which will show you a window with a 'map' of your code. It creates a map of islands displaying the classes in your project using a similartiy metric. It also allows you to display method calls as arrows between the 'islands'.

--> Eclipse 插件,它将向您显示一个带有代码“地图”的窗口。它使用相似度指标创建显示项目中类的岛屿地图。它还允许您将方法调用显示为“岛”之间的箭头。

Very cool project, I am not up to date about the latest state of development.

非常酷的项目,我不了解最新的开发状态。

回答by Mawg says reinstate Monica

CallGraph Viewer Eclipse plug-in:

CallGraph Viewer Eclipse 插件

Provides Call-Path and Sequence Diagram viewers.

提供调用路径和序列图查看器。

Enables graphical analysis of program call relations and flow sequencing. Also enables exploration of extended class inheritance hierarchies.

启用程序调用关系和流程排序的图形分析。还可以探索扩展的类继承层次结构。

Call-path analysis and class hieararchy resolution are performed using the JDT platform Search and Call Hierarchy mechanisms.

调用路径分析和类层次结构解析是使用 JDT 平台搜索和调用层次结构机制执行的。

Sequence diagrams are generated from a static analysis of of the JDT platform AST for any selected class or method.

序列图是通过对 JDT 平台 AST 的任何选定类或方法的静态分析生成的。

enter image description here

在此处输入图片说明

回答by Fabian Steeg

Not a released plugin, but for type hierarchy visualization have a look at http://pbwhiteboard.blogspot.com/2010/12/zest-type-hierarchy-view.html

不是已发布的插件,但对于类型层次结构可视化,请查看http://pbwhiteboard.blogspot.com/2010/12/zest-type-hierarchy-view.html

For a related plugin (but not quite what you are looking for), have a look at http://marketplace.eclipse.org/content/debug-visualisation-eclipse

对于相关插件(但不是您要找的插件),请查看http://marketplace.eclipse.org/content/debug-visualisation-eclipse