Revision: 3776
Author: [email protected]
Date: Thu Jul 22 09:38:47 2010
Log: Removed all the SQLObject's childPositionOffset and allowsChildren methods to force them to use AbstractSPObject's implementation.
http://code.google.com/p/power-architect/source/detail?r=3776

Modified:
 /trunk/src/main/java/ca/sqlpower/architect/swingui/dbtree/DBTreeModel.java

=======================================
--- /trunk/src/main/java/ca/sqlpower/architect/swingui/dbtree/DBTreeModel.java Mon Jul 12 08:21:11 2010 +++ /trunk/src/main/java/ca/sqlpower/architect/swingui/dbtree/DBTreeModel.java Thu Jul 22 09:38:47 2010
@@ -100,11 +100,6 @@
            public SQLObject getParent() {
                return parentTable;
            }
-
-        @Override
-        public boolean allowsChildren() {
-            return true;
-        }

         @Override
         public List<? extends SQLObject> getChildrenWithoutPopulating() {
@@ -148,15 +143,9 @@
throw new IllegalStateException("Cannot remove children from a folder, " +
                        "remove them from the table the folder is contained 
by.");
         }
-
- public int childPositionOffset(Class<? extends SPObject> childType) {
-            return 0;
-        }

         public List<Class<? extends SPObject>> getAllowedChildTypes() {
- List<Class<? extends SPObject>> allowedTypes = new ArrayList<Class<? extends SPObject>>();
-            allowedTypes.add(containingChildType);
-            return allowedTypes;
+ return Collections.<Class<? extends SPObject>>singletonList(containingChildType);
         }

         public List<? extends SPObject> getDependencies() {

Reply via email to