Revision: 3184
Author: [email protected]
Date: Tue Dec  1 14:42:03 2009
Log: Fixed the action to skip imported relationships instead of skipping the imported folder as the folders have been removed.
http://code.google.com/p/power-architect/source/detail?r=3184

Modified:
/branches/sqlobject-spobject-model/src/ca/sqlpower/architect/swingui/critic/CriticizeAction.java

=======================================
--- /branches/sqlobject-spobject-model/src/ca/sqlpower/architect/swingui/critic/CriticizeAction.java Tue Dec 1 14:21:17 2009 +++ /branches/sqlobject-spobject-model/src/ca/sqlpower/architect/swingui/critic/CriticizeAction.java Tue Dec 1 14:42:03 2009
@@ -97,8 +97,9 @@
         }

         for (SQLObject child : (List<SQLObject>) root.getChildren()) {
-            if (child instanceof SQLTable.Folder<?> &&
- ((SQLTable.Folder) child).getType() == SQLTable.Folder.IMPORTED_KEYS) {
+            if (child instanceof SQLRelationship
+                    && child.getParent() != null
+ && ((SQLTable) child.getParent()).getImportedKeys().contains(child)) { // skip contents of every imported keys folder, or else we will visit every relationship twice
                 continue;
             }

Reply via email to