Generate a Group of Classes

Return to Introduction  Previous page  Next page

In addition to being able to generate code for an individual class, you can also select a group of classes for batch code generation. When you do this, you accept all the default code generation options for each class in the set.

To Generate Multiple Classes

1.Select a group of classes and/or interfaces in a diagram.
2.Right-click on an element in the group to display the context menu.
3.Select the Code Generation | Generate Selected elements menu option. The Batch Generation dialog displays, showing the status of the process as it executes.
4.If you have not already specified an output name for the class/interface, Enterprise Architect prompts you for a suitable name as the generation proceeds.

Note: If all the elements selected are not classes or interfaces the option to generate code is not available.