[Uml-devel] branches/KDE/3.5/kdesdk/umbrello/umbrello/codegenerators
Oliver Kellogg
okellogg at users.sourceforge.net
Thu Mar 22 23:02:10 UTC 2007
SVN commit 645571 by okellogg:
Sundry cleanups. initFields(): Rename to init().
M +4 -8 javacodegenerator.cpp
M +1 -1 javacodegenerator.h
--- branches/KDE/3.5/kdesdk/umbrello/umbrello/codegenerators/javacodegenerator.cpp #645570:645571
@@ -32,14 +32,14 @@
//
JavaCodeGenerator::JavaCodeGenerator (QDomElement & elem)
+ : CodeGenerator(elem)
{
- initFields();
- loadFromXMI(elem);
+ init();
}
JavaCodeGenerator::JavaCodeGenerator ()
{
- initFields();
+ init();
}
JavaCodeGenerator::~JavaCodeGenerator ( ) { }
@@ -147,10 +147,7 @@
return doc;
}
-void JavaCodeGenerator::initFields() {
-
- UMLApp::app()->setPolicyExt( new JavaCodeGenerationPolicy(UMLApp::app()->getConfig()) );
-
+void JavaCodeGenerator::init() {
// load Classifier documents from parent document
//initFromParentDocument();
@@ -160,7 +157,6 @@
// set our 'writeout' policy for that code document
setCreateANTBuildFile(DEFAULT_BUILD_ANT_DOC);
-
}
QStringList JavaCodeGenerator::defaultDatatypes() {
--- branches/KDE/3.5/kdesdk/umbrello/umbrello/codegenerators/javacodegenerator.h #645570:645571
@@ -145,7 +145,7 @@
private:
- void initFields( ) ;
+ void init();
bool m_createANTBuildFile;
};
More information about the umbrello-devel
mailing list