Revision: 3460
Author: jfuerth
Date: Mon Apr 19 14:18:19 2010
Log: Made all "allowedChildTypes"
http://code.google.com/p/power-architect/source/detail?r=3460

Modified:
 /trunk/.project
 /trunk/pl.regression.ini
 /trunk/src/main/java/ca/sqlpower/architect/ArchitectProject.java
 /trunk/src/main/java/ca/sqlpower/architect/enterprise/DomainCategory.java
 /trunk/src/main/java/ca/sqlpower/architect/olap/OLAPRootObject.java
 /trunk/src/main/java/ca/sqlpower/architect/olap/OLAPSession.java
 /trunk/src/main/java/ca/sqlpower/architect/profile/ColumnProfileResult.java
 /trunk/src/main/java/ca/sqlpower/architect/profile/ColumnValueCount.java
 /trunk/src/main/java/ca/sqlpower/architect/profile/ProfileManagerImpl.java
 /trunk/src/main/java/ca/sqlpower/architect/profile/ProfileSettings.java
 /trunk/src/main/java/ca/sqlpower/architect/profile/TableProfileResult.java

=======================================
--- /trunk/.project     Wed Jan 14 12:27:26 2009
+++ /trunk/.project     Mon Apr 19 14:18:19 2010
@@ -6,6 +6,11 @@
                <project>sqlpower_library</project>
        </projects>
        <buildSpec>
+               <buildCommand>
+                       
<name>org.eclipse.wst.common.project.facet.core.builder</name>
+                       <arguments>
+                       </arguments>
+               </buildCommand>
                <buildCommand>
                        <name>org.eclipse.jdt.core.javabuilder</name>
                        <arguments>
@@ -14,5 +19,6 @@
        </buildSpec>
        <natures>
                <nature>org.eclipse.jdt.core.javanature</nature>
+               
<nature>org.eclipse.wst.common.project.facet.core.nature</nature>
        </natures>
 </projectDescription>
=======================================
--- /trunk/pl.regression.ini    Tue Feb 23 08:44:07 2010
+++ /trunk/pl.regression.ini    Mon Apr 19 14:18:19 2010
@@ -36,3 +36,6 @@
 DSN=
 JDBC URL=jdbc:hsqldb:mem:architest
 UID=sa
+[Databases_2]
+Logical=Testing data source
+Connection Type
=======================================
--- /trunk/src/main/java/ca/sqlpower/architect/ArchitectProject.java Fri Apr 16 12:57:41 2010 +++ /trunk/src/main/java/ca/sqlpower/architect/ArchitectProject.java Mon Apr 19 14:18:19 2010
@@ -70,7 +70,7 @@
      * Defines an absolute ordering of the child types of this class.
      */
     @SuppressWarnings("unchecked")
-    public static List<Class<? extends SPObject>> allowedChildTypes =
+    public static final List<Class<? extends SPObject>> allowedChildTypes =
Collections.unmodifiableList(new ArrayList<Class<? extends SPObject>>(
                 Arrays.asList(SQLObjectRoot.class, OLAPRootObject.class,
                         PlayPenContentPane.class, ProfileManager.class,
=======================================
--- /trunk/src/main/java/ca/sqlpower/architect/enterprise/DomainCategory.java Fri Apr 16 07:54:56 2010 +++ /trunk/src/main/java/ca/sqlpower/architect/enterprise/DomainCategory.java Mon Apr 19 14:18:19 2010
@@ -20,7 +20,6 @@
 package ca.sqlpower.architect.enterprise;

 import java.util.ArrayList;
-import java.util.Arrays;
 import java.util.Collections;
 import java.util.List;

@@ -37,8 +36,8 @@
  */
 public class DomainCategory extends AbstractSPObject {

- public static List<Class<? extends SPObject>> allowedChildTypes = Collections - .unmodifiableList(new ArrayList<Class<? extends SPObject>>(Arrays.asList(UserDefinedSQLType.class)));
+    public static final List<Class<? extends SPObject>> allowedChildTypes =
+ Collections.<Class<? extends SPObject>>singletonList(UserDefinedSQLType.class);

     /**
* A {...@link List} of {...@link UserDefinedSQLType}s available under this category
=======================================
--- /trunk/src/main/java/ca/sqlpower/architect/olap/OLAPRootObject.java Fri Mar 12 15:01:53 2010 +++ /trunk/src/main/java/ca/sqlpower/architect/olap/OLAPRootObject.java Mon Apr 19 14:18:19 2010
@@ -39,7 +39,7 @@
      * Defines an absolute ordering of the child types of this class.
      */
     @SuppressWarnings("unchecked")
-    public static List<Class<? extends SPObject>> allowedChildTypes =
+    public static final List<Class<? extends SPObject>> allowedChildTypes =
Collections.unmodifiableList(new ArrayList<Class<? extends SPObject>>(
                 Arrays.asList(OLAPSession.class)));

=======================================
--- /trunk/src/main/java/ca/sqlpower/architect/olap/OLAPSession.java Fri Mar 12 15:01:53 2010 +++ /trunk/src/main/java/ca/sqlpower/architect/olap/OLAPSession.java Mon Apr 19 14:18:19 2010
@@ -45,7 +45,7 @@
      * Defines an absolute ordering of the child types of this class.
      */
     @SuppressWarnings("unchecked")
-    public static List<Class<? extends SPObject>> allowedChildTypes =
+    public static final List<Class<? extends SPObject>> allowedChildTypes =
Collections.unmodifiableList(new ArrayList<Class<? extends SPObject>>(
                 Arrays.asList(Schema.class)));

=======================================
--- /trunk/src/main/java/ca/sqlpower/architect/profile/ColumnProfileResult.java Wed Apr 14 09:10:02 2010 +++ /trunk/src/main/java/ca/sqlpower/architect/profile/ColumnProfileResult.java Mon Apr 19 14:18:19 2010
@@ -39,7 +39,7 @@
      * Defines an absolute ordering of the child types of this class.
      */
     @SuppressWarnings("unchecked")
-    public static List<Class<? extends SPObject>> allowedChildTypes =
+    public static final List<Class<? extends SPObject>> allowedChildTypes =
Collections.unmodifiableList(new ArrayList<Class<? extends SPObject>>(
                 Arrays.asList(ColumnValueCount.class)));

=======================================
--- /trunk/src/main/java/ca/sqlpower/architect/profile/ColumnValueCount.java Wed Apr 14 09:10:02 2010 +++ /trunk/src/main/java/ca/sqlpower/architect/profile/ColumnValueCount.java Mon Apr 19 14:18:19 2010
@@ -39,7 +39,7 @@
      * Defines an absolute ordering of the child types of this class.
      */
     @SuppressWarnings("unchecked")
- public static List<Class<? extends SPObject>> allowedChildTypes = Collections.emptyList(); + public static final List<Class<? extends SPObject>> allowedChildTypes = Collections.emptyList();

     private Object value;
     private int count;
=======================================
--- /trunk/src/main/java/ca/sqlpower/architect/profile/ProfileManagerImpl.java Wed Apr 14 09:10:02 2010 +++ /trunk/src/main/java/ca/sqlpower/architect/profile/ProfileManagerImpl.java Mon Apr 19 14:18:19 2010
@@ -65,7 +65,7 @@
      * Defines an absolute ordering of the child types of this class.
      */
     @SuppressWarnings("unchecked")
-    public static List<Class<? extends SPObject>> allowedChildTypes =
+    public static final List<Class<? extends SPObject>> allowedChildTypes =
Collections.unmodifiableList(new ArrayList<Class<? extends SPObject>>( Arrays.asList(ProfileSettings.class, TableProfileResult.class)));

=======================================
--- /trunk/src/main/java/ca/sqlpower/architect/profile/ProfileSettings.java Thu Feb 18 07:57:18 2010 +++ /trunk/src/main/java/ca/sqlpower/architect/profile/ProfileSettings.java Mon Apr 19 14:18:19 2010
@@ -41,7 +41,7 @@
     /**
      * Defines an absolute ordering of the child types of this class.
      */
- public static List<Class<? extends SPObject>> allowedChildTypes = Collections.emptyList(); + public static final List<Class<? extends SPObject>> allowedChildTypes = Collections.emptyList();

     private boolean findingMin = true;

=======================================
--- /trunk/src/main/java/ca/sqlpower/architect/profile/TableProfileResult.java Wed Apr 14 09:10:02 2010 +++ /trunk/src/main/java/ca/sqlpower/architect/profile/TableProfileResult.java Mon Apr 19 14:18:19 2010
@@ -56,7 +56,7 @@
      * Defines an absolute ordering of the child types of this class.
      */
     @SuppressWarnings("unchecked")
-    public static List<Class<? extends SPObject>> allowedChildTypes =
+    public static final List<Class<? extends SPObject>> allowedChildTypes =
Collections.unmodifiableList(new ArrayList<Class<? extends SPObject>>(
                 Arrays.asList(ColumnProfileResult.class)));



--
Subscription settings: 
http://groups.google.com/group/architect-commits/subscribe?hl=en

Reply via email to