Bug 91434 - code not generated for classes inside packages
Summary: code not generated for classes inside packages
Status: RESOLVED FIXED
Alias: None
Product: umbrello
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Slackware Linux
: NOR normal
Target Milestone: ---
Assignee: Umbrello Development Group
URL:
Keywords:
: 74952 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-10-16 12:41 UTC by Massimo Costa
Modified: 2004-12-26 19:23 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Massimo Costa 2004-10-16 12:41:00 UTC
Version:            (using KDE KDE 3.3.1)
Installed from:    Slackware Packages
Compiler:          gcc version 3.3.4
OS:                Linux (i686) release 2.4.26

I create a package and several classes in it.
When I use Code Wizard Generator for create C++ code, the procedure dont work. The target directory is empty.

Example:

package "disney"
  |---class "mickey"
  ----class "donald"
Comment 1 Jonathan Riddell 2004-10-16 15:15:26 UTC
Confirmed.
Comment 2 Jonathan Riddell 2004-10-16 15:16:00 UTC
This happens with any code generator, both complex (C++ & Java) and simple ones.
Comment 3 Oliver Kellogg 2004-12-24 23:05:16 UTC
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;


Comment 4 Oliver Kellogg 2004-12-26 19:23:29 UTC
*** Bug 74952 has been marked as a duplicate of this bug. ***