简体   繁体   English

Eclipse的免费UML工具/插件可以生成Java代码吗?

[英]Free UML tool/plugin for Eclipse can generate Java code?

I'm newbie for Eclipse. 我是Eclipse的新手。 I don't know what plugin can create class diagram, sequence diagram... and generate java code and of coursce, it's free. 我不知道哪个插件可以创建类图,序列图...并生成java代码和coursce,它是免费的。 Anyone know some tools like this ? 有人知道这样的工具吗?

I would recommend to use Togethersoft or Omondo for java but these tools are not free. 我建议使用Togethersoft或Omondo for java但这些工具不是免费的。

The only java free UML tool is eUML but it adds plenty of tags in my code. 唯一的java免费UML工具是eUML,但它在我的代码中添加了大量标签。 The generated code is a mess because the UML model is using @ UML directly in my java code. 生成的代码很乱,因为UML模型直接在我的java代码中使用@UML。 Both UML model and java code are therefore mixed mixed. 因此,UML模型和Java代码混合在一起。 If I refactor my code then all my model is lost. 如果我重构我的代码,那么我的所有模型都会丢失。 I only change one of my attribute and all my model was immediately lost. 我只更改了我的一个属性,我的所有模型都立即丢失了。 What was the worst is that I also lost my code which was changed. 最糟糕的是我也丢失了我改变的代码。 I needed to paste a copy manually all my classes and create a new project. 我需要手动粘贴所有类的副本并创建一个新项目。 I lost many hours of work just because I did create 2 small class diagrams !! 我失去了很多小时的工作只是因为我创造了2个小班图! My code format has been changed without my permission. 我的代码格式未经我的许可而更改。 This is an unacceptable behavior. 这是一种不可接受的行为。 I like the tool but don't want that UML code generation be so intrusive in my java code. 我喜欢这个工具,但不希望UML代码生成在我的java代码中如此具有侵入性。 The graphical design is pretty nice but because this is live code and model syncrhonization and that the code is dirty this is a no go for me. 图形设计非常好,但因为这是实时代码和模型同步,而且代码很脏,这对我来说是不行的。 It would have been good to separate live code generation from model and UML design like the other tools. 将实时代码生成与模型和UML设计分开是很好的,就像其他工具一样。

For Eclipse, I suggest using eUML2 (http://www.soyatec.com/euml2/installation/). 对于Eclipse,我建议使用eUML2(http://www.soyatec.com/euml2/installation/)。

If using Eclipse is not a must, I think the better choice would be https://www.magicdraw.com/ - they have a free version for students. 如果使用Eclipse不是必须的,我认为更好的选择是https://www.magicdraw.com/ - 他们为学生提供免费版本。

Topcased contains a UML editor together with a Java generator (and reverse). Topcased包含一个UML编辑器和一个Java生成器(反向)。 The Papyrus Editor is included in Topcased. Papyrus编辑器包含在Topcased中。 They are both based on Eclipse Modeling Project. 它们都基于Eclipse Modeling Project。 Have a look on tutorials . 看看教程

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

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