[Uml-devel] kdesdk/umbrello/umbrello/codegenerators
Jonathan Riddell
jri at jriddell.org
Mon Dec 22 07:37:05 UTC 2003
CVS commit by jriddell:
Fix beastie 70870
Java code generation ignores operation parameter documentation
M +8 -3 cppheadercodeoperation.cpp 1.10
M +13 -8 javacodeoperation.cpp 1.9
--- kdesdk/umbrello/umbrello/codegenerators/cppheadercodeoperation.cpp #1.9:1.10
@@ -60,4 +60,9 @@ void CPPHeaderCodeOperation::updateMetho
// first, the comment on the operation
QString comment = o->getDoc();
+ UMLAttributeList* paramaters = o->getParmList();
+ for(UMLAttributeListIt iterator(*paramaters); iterator.current(); ++iterator) {
+ comment += "\n at param " + iterator.current()->getName() + " ";
+ comment += iterator.current()->getDoc();
+ }
getComment()->setText(comment);
--- kdesdk/umbrello/umbrello/codegenerators/javacodeoperation.cpp #1.8:1.9
@@ -44,4 +44,9 @@ void JavaCodeOperation::updateMethodDecl
// first, the comment on the operation
QString comment = o->getDoc();
+ UMLAttributeList* paramaters = o->getParmList();
+ for(UMLAttributeListIt iterator(*paramaters); iterator.current(); ++iterator) {
+ comment += "\n at param " + iterator.current()->getName() + " ";
+ comment += iterator.current()->getDoc();
+ }
getComment()->setText(comment);
More information about the umbrello-devel
mailing list