Hey everyone,
I'm currently working with EA, generating C code from my class diagrams (interfaces and function bodies).
Currently I'm facing a problem with the includes, maybe someone can give me a hint.
Here is description of my problem:
Interface A has a "use" dependency to Interface B.
Class C, which is a struct is part of Interface B.
If I generate code for Interface A, I will
not get an #include statement for the inclusion of interface B.
This is because the dependency "use" will not lead to an include automatically.
I solved that issue following the steps described here:
http://blog.sparxsystems.de/2010/01/genegieren-von-include-using-import-etc-aus-dependencies-bei-der-codegenerierung/(Sorry, text is in german but the screenshots of the code templates are easy to understand).
Now I've got an #include statement and everything is fine....
But if I add an operation to Interface A which has a parameter or return type that is defined in Interface B (e.g. Class C (struct)) EA adds an include statement for that purpose.
Now I've got duplicated includes and I have no idea how this can be solved.
The idea I had was to check for duplicates but I was not able to get it to work.
Any idea?

Thanks in advance.
Thomas