13.6.  Source Tab

This tab shows the source code that will be generated for this model element, in the selected language. ArgoUML generates the code e.g. for classes and interfaces. The code shown here, may be saved in the indicated files with the aid of the functions in the Generation menu.

Figure 13.12.  The Source Tab of a class.

The Source Tab of a class.

Any code you add will be lost - that is not the intention of ArgoUML - use an IDE instead.

The dropdown at the right allows selection of the output file. This function is not very useful for languages that generate all code for a class within one file, but serves its purpose for e.g. C++, where a .h and .cpp file are generated. See the figure below.

Figure 13.13.  A C++ example.

A C++ example.