| Summary: | code not generated for classes inside packages | ||
|---|---|---|---|
| Product: | [Applications] umbrello | Reporter: | Massimo Costa <massimocosta_2> |
| Component: | general | Assignee: | Umbrello Development Group <umbrello-devel> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | contact |
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | Slackware | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
Massimo Costa
2004-10-16 12:41:00 UTC
Confirmed. This happens with any code generator, both complex (C++ & Java) and simple ones. CVS commit by okellogg:
BUG:91434 - Use getFullyQualifiedName() in lieu of just getName()
M +8 -10 codegenerationwizard.cpp 1.20
--- kdesdk/umbrello/umbrello/dialogs/codegenerationwizard.cpp #1.19:1.20
@@ -52,14 +52,12 @@ CodeGenerationWizard::CodeGenerationWiza
insertPage(m_CodeGenerationOptionsPage, i18n("Code Generation Options"), 1);
- UMLClassifierList cList = m_doc->getClassesAndInterfaces();
+ UMLClassifierList cList;
- if(classList) {
- for(UMLClassifier *c = classList->first(); c ; c = classList->next()) {
- new QListViewItem( m_selectedList, c->getName());
- }
- } else {
- for(UMLClassifier *c = cList.first(); c ; c = cList.next()) {
- new QListViewItem( m_selectedList, c->getName());
+ if (classList == NULL) {
+ cList = m_doc->getClassesAndInterfaces();
+ classList = &cList;
}
+ for (UMLClassifier *c = classList->first(); c ; c = classList->next()) {
+ new QListViewItem( m_selectedList, c->getFullyQualifiedName());
}
@@ -136,5 +134,5 @@ void CodeGenerationWizard::generateCode(
void CodeGenerationWizard::classGenerated(UMLClassifier* concept, bool generated) {
- QListViewItem* item = m_statusList->findItem( concept->getName(), 0 );
+ QListViewItem* item = m_statusList->findItem( concept->getFullyQualifiedName(), 0 );
if( !item ) {
kdError()<<"GenerationStatusPage::Error finding class in list view"<<endl;
|