Revision: 3530
Author: [email protected]
Date: Mon May 10 19:46:07 2010
Log: Removed broken code.
http://code.google.com/p/power-architect/source/detail?r=3530

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

=======================================
--- /trunk/src/main/java/ca/sqlpower/architect/swingui/ColumnEditPanel.java Thu May 6 07:37:54 2010 +++ /trunk/src/main/java/ca/sqlpower/architect/swingui/ColumnEditPanel.java Mon May 10 19:46:07 2010
@@ -1062,26 +1062,13 @@
     };

     public void childAdded(SPChildEvent e) {
-        try {
- if (e.getSource() == columns.get(0).getParent().getPrimaryKeyIndex()) { - // The column that was added may not be the one at index 0, but
-                // e.getChild() is a copied column, and it doesn't matter
-                // so long as a change is flagged, which it will be.
- propertyChanged(new PropertyChangeEvent(columns.get(0), "inPK", false, true));
-            }
-        } catch (SQLObjectException ex) {
-            throw new RuntimeException(ex);
-        }
+        //TODO Don't make the ColumnEditPanel a listener.
+ //THEN make the PK check box go red if a conflicting update is received.
     }

     public void childRemoved(SPChildEvent e) {
-        try {
- if (e.getSource() == columns.get(0).getParent().getPrimaryKeyIndex()) { - propertyChanged(new PropertyChangeEvent(columns.get(0), "inPK", true, false));
-            }
-        } catch (SQLObjectException ex) {
-            throw new RuntimeException(ex);
-        }
+        //TODO Don't make the ColumnEditPanel a listener.
+ //THEN make the PK check box go red if a conflicting update is received.
     }

     public void propertyChanged(PropertyChangeEvent e) {

Reply via email to