我是EA的新手,还在学习这个工具,用逆向工程来生成序列图,但是找不到关于这个主题的足够的信息。如果有人知道要创造这个,请帮助我。
我找到了使用反向工程创建类图的方法,我们可以通过创建新模型并将源项目导入EA来实现。步骤如下所述。
这将将所有java文件导入EA,并使用反向工程生成类图。
接下来,我希望使用EA为android应用程序创建序列图,但无法获得任何信息。请指导我,如果有人已经这样做了,或有人想要分享这方面的信息。
提前谢谢。
发布于 2015-11-08 01:20:35
生成序列图企业架构师11和12
这花了我几天几个小时的时间,但现在我一直在使用这个程序。
1. Go to 'Analyzer' -> 'Manage Debug Scripts'.
2. Go to 'Analyzer' -> 'Debug' -> 'Debugger'.
3. Go to 'Analyzer' -> 'Debug' -> 'Recorder'.
4. Go to 'Analyzer' -> 'Breakpoints and Markers'
1. In the 'Execution Analyzer' window, Add a new script.
2. Right-click on the new script that was created in the last step, and choose 'edit'.
3. In the left pane, Select 'debug' -> 'Platform'.
4. From the 'Debugger' drop-down menu, select 'Java'.
5. For 'Default Directory', without the square brackets, put your [project root path]
6. For 'Application Class', without the square brackets, put [name of package with main class].[main class name]
7. For 'Java Virtual Machine Options' customize the following script.
-Djava.class.path=.;src;bin;lib\some_3rd_party_library01.jar;lib\some_3rd_party_library02.jar jre=C:\Program Files\Java\jdk1.8.0_66\jre\bin\server
可能与您不同的脚本组件:
1. Select the various radio buttons that suit your intentions, i.e. 'x64' and 'Run'.
2. Click OK.
您可能需要在此时通过运行调试来检查此脚本。右键单击脚本图标并选择调试。
1. In the project browser, right-click on a class from which you want sequence diagrams to begin from.
2. Choose 'Execution Analyzer' -> 'Markup Class for Recording'.
3. Give this setup a name.
4. Select the methods from which you want sequence diagrams to begin.
5. From the 'Marker Type' drop down box, select 'Record Function'.
6. Choose the class depth of the sequence diagram.
7. Click OK.
1. On the 'Record & Analyze' window, click on the play symbol.
2. From the 'Recording Set' drop down menu, choose the name of the configuration saved in step 9.
3. press OK.
在调试执行期间,至少应该有一个方法/类跟踪出现在“记录和分析”窗口中。
完成了。(可以问更多的问题。)
https://stackoverflow.com/questions/26133836
复制相似问题