简体   繁体   English

从Eclipse中的Java代码到Omnigraffle中的UML类图

[英]From Java code in eclipse to UML class diagrams in Omnigraffle

Is there a way to get reversed engineered uml diagrams into Omnigraffle? 有没有办法将反向工程化的uml图放入Omnigraffle? I got a bunch of eclipse plugins that can create UML class diagrams, but not in a format that Omnigraffle can handle. 我有一堆可以创建UML类图的eclipse插件,但不是Omnigraffle可以处理的格式。 Is there any way to get my project from eclipse to Omnigraflle? 有什么办法可以将我的项目从eclipse迁移到Omnigraflle? Thanks! 谢谢!

I've created a little plugin for Eclipse in order to create an OmniGraffle UML-like class diagram from a Java package. 我已经为Eclipse创建了一个小插件,以便从Java包中创建类似于OmniGraffle UML的类图。 It does not create files, but instead uses AppleScript to direcly draw the diagram in an opened OmniGraffle drawing. 它不创建文件,而是使用AppleScript在打开的OmniGraffle绘图中直接绘制该图。 The plugin provides some options in order to control the diagram creation, eg, show or hide private attributes etc. Parameterized collections are transformed into associations, however there is room for improvement. 该插件提供了一些选项来控制图表的创建,例如显示或隐藏私有属性等。将参数化的集合转换为关联,但是仍有改进的空间。 The plugin is described at http://jpilgrim.github.com/eclipsetools/j2og/ where you will also find a link to the update site in order to easily install the plugin. 该插件在http://jpilgrim.github.com/eclipsetools/j2og/中进行了描述,在这里您还将找到指向更新站点的链接,以便轻松安装该插件。

Yes, this is strange but no XMI export to Omnigraffe is available from UML 2.3. 是的,这很奇怪,但是UML 2.3无法将XMI导出到Omnigraffe。

I don't think this is a big job to be done so you can do it by yourself. 我认为这不是一项艰巨的工作,因此您可以自己完成。 You need to take the EclipseUML2 metamodel or the EMF model then manually identify each model element (eg a class in UML 2.3 is .....in Omnigraffe, etc....) Once all the elements have been identify then code a xml mapper. 您需要使用EclipseUML2元模型或EMF模型,然后手动识别每个模型元素(例如,UML 2.3中的类是......在Omnigraffe中,等等..)一旦确定了所有元素,然后编写xml映射器。 It would work. 会的。 A good mapper is about 18 months work for one engineer, but if you are 5 of you you can do it in less than 3-6 months (2months for codding and 4 months for testing). 一个好的映射器对于一个工程师来说大约需要18个月的工作,但是如果您中有5个,则可以在3-6个月内完成(编码2个月,测试4个月)。 Good luck for this potential project. 祝这个潜在的项目好运。

My question could be why the Omni Group has not done the xml export ? 我的问题可能是为什么Omni Group没有完成xml导出?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM