Revision: 3867
Author: [email protected]
Date: Wed Aug 11 11:27:52 2010
Log: NEW - bug 2887: Dragging to the left of the play pen without edit privileges causes a lot of warnings.
http://trillian.sqlpower.ca/bugzilla/show_bug.cgi?id=2887

The FloatingContainerPaneListener now groups transactions on the PlayPenContentPane so that only one error prompt comes up.
http://code.google.com/p/power-architect/source/detail?r=3867

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

=======================================
--- /trunk/src/main/java/ca/sqlpower/architect/swingui/PlayPen.java Tue Aug 10 15:47:16 2010 +++ /trunk/src/main/java/ca/sqlpower/architect/swingui/PlayPen.java Wed Aug 11 11:27:52 2010
@@ -2638,6 +2638,7 @@

                        pp.cursorManager.tableDragStarted();
                        pp.startCompoundEdit("Move " + ppc.getName()); 
//$NON-NLS-1$
+                       pp.getContentPane().begin("Move " + ppc.getName());
                }

                public void mouseMoved(MouseEvent e) {
@@ -2699,6 +2700,7 @@
                                pp.revalidate();
                        } finally {
pp.endCompoundEdit("Ending move for table "+ppc.getName()); //$NON-NLS-1$
+                           pp.getContentPane().commit("Ending move for table 
"+ppc.getName());
                        }
                }
        }

Reply via email to