Revision: 3866
Author: [email protected]
Date: Tue Aug 10 15:47:16 2010
Log: Fixed dragging so that only the selected components will move.
http://code.google.com/p/power-architect/source/detail?r=3866

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

=======================================
--- /trunk/src/main/java/ca/sqlpower/architect/swingui/PlayPen.java Tue Aug 10 14:52:03 2010 +++ /trunk/src/main/java/ca/sqlpower/architect/swingui/PlayPen.java Tue Aug 10 15:47:16 2010
@@ -1953,7 +1953,13 @@
        }

        public List<DraggablePlayPenComponent> getSelectedDraggableComponents() 
{
- return Collections.unmodifiableList(contentPane.getChildren(DraggablePlayPenComponent.class)); + ArrayList <DraggablePlayPenComponent> selected = new ArrayList<DraggablePlayPenComponent>(); + for (DraggablePlayPenComponent tp : contentPane.getChildren(DraggablePlayPenComponent.class)) {
+            if (tp.isSelected()) {
+                selected.add(tp);
+            }
+        }
+        return Collections.unmodifiableList(selected);
        }

        /**

Reply via email to