When you generate code, a new output window will show in Enterprise Architect:
It shows you the progress of the code generation, and also which elements were processed. If there are errors in the code generation, they will show here as well. You can jump directly to the element by double-clicking on a line in the output window.
For example, if you double-click on the line highlighted in the screenshot, you will automatically jump to the diagram that contains the class, and the class will be selected on the diagram: