Generating, visualizing and editing IDL code
Launching IDL code generation
The next step in our quick tour is to generate the IDL code for the "ClimateControlDistributed" package.
To do this, simply right-click on the IDL generation work product belonging to the "ClimateControlDistributed" package and run the "MDA components/Corba Designer/Generate" command from the context menu that appears.
IDL code is then immediately generated for the package to which the IDL generation work product belongs.
Visualizing the generated IDL code
Generated IDL code is visualized (as shown in Figure 6) through the "Visualize" command on an IDL generation work product. This command can only be launched on a work product that has an associated IDL file, in other words, a work product belonging to a package for which code has already been generated.
We are now going to visualize the IDL code that has been generated for the "ClimateControlDistributed" package. To do this, simply right-click on the associated work product, and run the "MDA components/Corba Designer/Visualize" command. This command opens a window containing the generated IDL code.
It is not possible to modify the code directly in this window. You can, however, easily modify the notes containing the code for certain model elements, by clicking on the blue code sections in the visualization window.

Figure 6. Window displaying the IDL code of the "ClimateControlDistributed" package
Editing the generated code
The IDL code generated for a package can be edited using an external editor of your choice, as shown in Figure 7 (this external editor is defined through the "External editor" parameter in the "External edition" parameter set). Zones represented between markers can be modified. Modifications are directly incorporated into the model when the editor is closed.

Figure 7. Editing the generated code using an external editor