如何使用js / uml对我的JavaScript文件进行反向工程? [英] How can I reverse engineer my JavaScript files with js/uml?

查看:163
本文介绍了如何使用js / uml对我的JavaScript文件进行反向工程?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的目标是从我的JavaScript项目中获取一个UML模型(由几个.js文件组成)并将其存储为XMI。

My goal is to get an UML model out of my JavaScript project (consisting of several .js files) and store it as XMI.

我搜索了互联网,发现js / uml是第一个去的地方。

I searched the internet and found out js/uml is the first place to go.

我已经设法使用Eclipse 3.7.1(Win32)运行js / uml插件以及我预先下载的其他插件的本地安装:

I've managed it to get the js/uml plugin running with Eclipse 3.7.1 (Win32) and a local installation of my pre-downloaded additional plugins:


  1. mdt-uml2tools-Update-incubation-I201103290512.zip(installs required org.eclipse.uml2.diagram.clazz 0.10.0)

  2. jsuml-eclipse-0.8.4.zip(仅适用于Eclipse 3.7.1(Indigo))

我将提供的示例项目jsuml-example-yui-0.8.4.zip加载到Eclipse中,并将所有我的.js文件也添加到此项目中。

I loaded the provided example project jsuml-example-yui-0.8.4.zip into Eclipse and added all my .js files to this project also.

现在我陷入困境,不知道如何调用我的.js文件的逆向工程。我可以从项目的上下文菜单中调用'New' - >'Other' - >'UML 2.1 Diagrams' - >'Class Diagram',但我没有获得该助手对话框的以下步骤,如果没有这是正确的方式。拜托,你能帮我找一个容易理解的点击教程吗? js / uml主页对IMHO的解释不够。感谢你的帮助。

Now I'm stuck and do not get it how to call the reverse engineering of my .js files. I can call 'New'->'Other'->'UML 2.1 Diagrams'->'Class Diagram' from the project's context menu, but I don't get the following steps of that assistant dialog, nor do I get it if this is the right way at all. Please, could you help me with an easy understandable click tutorial? The js/uml homepage does not explain it well enough IMHO. Thanks for your help in advance.

推荐答案

有人为网络工件改编了UML,它被称为UML的WAE扩展。这样你不仅可以看到你的javascript文件,还可以看到html和css。如果你使用node.js,我创建了一个模块,为javascript / node / html / css生成类图。它叫做wavi。对于javascript,函数,变量会自动识别。您可以使用它来记录您的申请。

Someone adapted UML for web artifact, its called the "WAE" extension of UML. This way you can see not only your javascript files but the html and css. If you work with node.js, i created a module that generate class diagram for javascript/node/html/css. Its called wavi. For javascript, function,variable are automatically recognized. You can use it for documenting your application.

https://www.npmjs.org/package/wavi

这篇关于如何使用js / uml对我的JavaScript文件进行反向工程?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆