[Uml-devel] kdesdk/umbrello/umbrello/codegenerators
Brian Thomas
thomas at mail630.gsfc.nasa.gov
Tue Sep 16 15:23:04 UTC 2003
CVS commit by thomas:
bug fix: package and import statements have bad formatting
M +3 -3 javaclassifiercodedocument.cpp 1.11
--- kdesdk/umbrello/umbrello/codegenerators/javaclassifiercodedocument.cpp #1.10:1.11
@@ -423,5 +423,5 @@ void JavaClassifierCodeDocument::updateC
// PACKAGE CODE BLOCK
//
- QString packageText = getPackage().isEmpty() ? "" : "package "+getPackage()+";";
+ QString packageText = getPackage().isEmpty() ? "" : "package "+getPackage()+";"+endLine;
addOrUpdateTaggedCodeBlockWithComments("packages", packageText, "", 0, false);
@@ -433,5 +433,5 @@ void JavaClassifierCodeDocument::updateC
QString importStatement = "";
if ( hasObjectVectorClassFields() )
- importStatement.append("import java.util.*;"+endLine);
+ importStatement.append("import java.util.*;");
//only import classes in a different package from this class
@@ -445,5 +445,5 @@ void JavaClassifierCodeDocument::updateC
{
packageMap->insert(con,con->getPackage());
- importStatement.append("import "+con->getPackage()+"."+gen->cleanName(con->getName())+";"+endLine);
+ importStatement.append(endLine+"import "+con->getPackage()+"."+gen->cleanName(con->getName())+";");
}
// now, add/update the imports codeblock
More information about the umbrello-devel
mailing list