Revision: 3240
Author: silva.josemanuel1
Date: Thu Jan 21 10:26:25 2010
Log: Forgot to set the ArchitectProject as the parent of its children.
http://code.google.com/p/power-architect/source/detail?r=3240

Modified:
 /trunk/src/ca/sqlpower/architect/ArchitectProject.java

=======================================
--- /trunk/src/ca/sqlpower/architect/ArchitectProject.java Mon Jan 18 11:55:38 2010 +++ /trunk/src/ca/sqlpower/architect/ArchitectProject.java Thu Jan 21 10:26:25 2010
@@ -61,13 +61,18 @@
         this.rootObject = new SQLObjectRoot();
         this.db = new SQLDatabase();

- rootObject.addSQLObjectPreEventListener(new SourceObjectIntegrityWatcher(session)); + rootObject.addSQLObjectPreEventListener(new SourceObjectIntegrityWatcher(session));

         try {
             ddlGenerator = new GenericDDLGenerator();
         } catch (SQLException e) {
             throw new SQLObjectException("SQL Error in ddlGenerator",e);
         }
+
+        rootObject.setParent(this);
+        db.setParent(this);
+        ddlGenerator.setParent(this);
+
     }

     /**

Reply via email to