Revision: 4031
Author: [email protected]
Date: Tue Dec  7 14:22:31 2010
Log: Allowed relationships to be removed and re-added properly when choosing to bring tables to the front and send them to the back.
http://code.google.com/p/power-architect/source/detail?r=4031

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

=======================================
--- /trunk/src/main/java/ca/sqlpower/architect/swingui/PlayPen.java Wed Nov 3 13:56:26 2010 +++ /trunk/src/main/java/ca/sqlpower/architect/swingui/PlayPen.java Tue Dec 7 14:22:31 2010
@@ -2733,7 +2733,7 @@
LinkedHashSet<PlayPenComponent> dependentComponents = new LinkedHashSet<PlayPenComponent>();

                        for (PlayPenComponent c : pp.getSelectedItems()) {
-                           if 
(PlayPenContentPane.isDependentComponentType(c.getClass())) {
+                           if (c instanceof UsageComponent) {
                                dependentComponents.add(c);

                                try {
@@ -2798,7 +2798,7 @@

                    for (PlayPenComponent c : pp.getSelectedItems()) {

-                       if 
(PlayPenContentPane.isDependentComponentType(c.getClass())) {
+                       if (c instanceof UsageComponent) {
                            dependentComponents.add(c);

                            try {

Reply via email to