[Uml-devel] branches/KDE/3.5/kdesdk/umbrello/umbrello/codegenerators
Oliver Kellogg
okellogg at users.sourceforge.net
Thu Mar 22 23:03:50 UTC 2007
SVN commit 645573 by okellogg:
initFields(): No longer needed, CodeGenFactory::createObject() will do the required stuff.
M +4 -6 rubycodegenerator.cpp
M +0 -3 rubycodegenerator.h
--- branches/KDE/3.5/kdesdk/umbrello/umbrello/codegenerators/rubycodegenerator.cpp #645572:645573
@@ -33,14 +33,12 @@
//
RubyCodeGenerator::RubyCodeGenerator (QDomElement & elem )
+ : CodeGenerator(elem)
{
- initFields();
- loadFromXMI(elem);
}
RubyCodeGenerator::RubyCodeGenerator ()
{
- initFields();
}
RubyCodeGenerator::~RubyCodeGenerator ( ) { }
@@ -131,13 +129,13 @@
return doc;
}
+/* These initializations are done in CodeGenFactory::createObject()
void RubyCodeGenerator::initFields() {
-
UMLApp::app()->setPolicyExt ( new RubyCodeGenerationPolicy(UMLApp::app()->getConfig()) );
-
// load Classifier documents from parent document
- //initFromParentDocument();
+ initFromParentDocument();
}
+ */
const QStringList RubyCodeGenerator::reservedKeywords() const {
--- branches/KDE/3.5/kdesdk/umbrello/umbrello/codegenerators/rubycodegenerator.h #645572:645573
@@ -125,9 +125,6 @@
*/
CodeBlockWithComments * createClassDecl ( UMLClassifier *c, ClassifierInfo *info, RubyClassifierCodeDocument * doc);
-private:
-
- void initFields( ) ;
};
#endif // RUBYCODEGENERATOR_H
More information about the umbrello-devel
mailing list