Revision: 3847
Author: [email protected]
Date: Fri Aug  6 12:25:04 2010
Log: Corrected several failing tests in Architect because the new value maker could not make a new SnapshotCollection.
http://code.google.com/p/power-architect/source/detail?r=3847

Modified:
 /trunk/regress/ca/sqlpower/architect/util/ArchitectNewValueMaker.java

=======================================
--- /trunk/regress/ca/sqlpower/architect/util/ArchitectNewValueMaker.java Tue Jul 20 08:10:07 2010 +++ /trunk/regress/ca/sqlpower/architect/util/ArchitectNewValueMaker.java Fri Aug 6 12:25:04 2010
@@ -22,6 +22,7 @@
 import ca.sqlpower.architect.ArchitectProject;
 import ca.sqlpower.architect.ArchitectSessionContextImpl;
 import ca.sqlpower.architect.ProjectSettings;
+import ca.sqlpower.architect.SnapshotCollection;
 import ca.sqlpower.architect.ProjectSettings.ColumnVisibility;
 import ca.sqlpower.architect.ddl.critic.CriticAndSettings;
 import ca.sqlpower.architect.ddl.critic.CriticAndSettings.Severity;
@@ -128,6 +129,10 @@
             ProfileManagerImpl profileManager = new ProfileManagerImpl();
             valueMakerProject.setProfileManager(profileManager);
             return profileManager;
+        } else if (SnapshotCollection.class.isAssignableFrom(valueType)) {
+            SnapshotCollection collection = new SnapshotCollection();
+            root.addChild(collection, 0);
+            return collection;
         } else if (valueType == PlayPenContentPane.class) {
PlayPenContentPane pane = new PlayPenContentPane(new SQLDatabase()); ((ArchitectSwingProject) makeNewValue(ArchitectSwingProject.class, null, null)).setPlayPenContentPane(pane);

Reply via email to