Sparx Systems Forum
Enterprise Architect => Suggestions and Requests => Topic started by: Martin Terreni on January 19, 2005, 12:59:10 am
-
Problem:
Hi
We work within nemaspaces in CPP file too. the problem is that when we generate a new method in EA it appends method at the end of file , instead of inside corresponding namesapce.
I havn't found how to change it through code generation templates, you can change there maybe for 1st time code generation, but not for addings.
any ideas?
answer (by simonm):
At the moment it's not possible...
I guess you'll just need to manually move the methods EA creates into the right namespace.
Simon
is it possible to make some attribute for each class marking that file was created through EA so it will add code using generation templates rules?
any way, methods are updated fine in header file, can't some similar technique be used here too?
-
Oh, methods are updated fine in the implementation file normally. Having namespaces in the implementation file is just something that was never considered though.
There are quite a few things that would need to be done in order to do what you want. Some of them are likely to become very complex.
Simon
-
Yes I gget it :(
We desided for now to give it up and use normal EA standard for it.