开发者

Is it possible to arrange classes automatically in Enterprise Architect?

When trying to build a Class Diagram fro开发者_运维知识库m my Java code through Eclipse (making use of Enterprise Architect), I get all my classes on top of each other, which of course, turns the whole idea of trying to make sense of my code from the diagram totally useless.

Any way around this?

Is it possible to arrange classes automatically in Enterprise Architect?


There is a auto layout button in the toolbar. You can also set some preferences for this function. They are documented here: Lay Out a Diagram Automatically


How are you adding your classes to the diagram, are they simply a drag and drop from the project explorer, or are you reverse engineering the code into the model? If you are just dragging and dropping then the auto layout button mentioned above is what you are after.

If you are importing the classes automatically from reverse engineering then you have two options.

In Enterprise Architect under Tools -> Options -> Source Code Engineering there is an "Auto Layout Diagram on Import" drop down. By default it is set to auto layout your diagrams only when a new diagram is created. If you are creating a diagram before importing the class you can change the drop down to: "Always". Keeping in mind that although you are working in Eclipse, Enterprise Architect's engine is still responsible for the modeling work in the background.

I hope this helps.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜