Revision: 3972
Author: [email protected]
Date: Wed Nov  3 14:21:58 2010
Log: Deleted some commented out code that I missed in my last commit.
http://code.google.com/p/power-architect/source/detail?r=3972

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

=======================================
--- /trunk/src/main/java/ca/sqlpower/architect/swingui/Relationship.java Wed Nov 3 13:56:26 2010 +++ /trunk/src/main/java/ca/sqlpower/architect/swingui/Relationship.java Wed Nov 3 14:21:58 2010
@@ -224,12 +224,10 @@
         */
        protected void setup() {
                updateUI();
-               //((RelationshipUI)getUI()).bestConnectionPoints();
                setOpaque(false);
                setBackgroundColor(Color.green);
                model.addSPListener(this);
                setToolTipText(model.getName());
-
        }

        protected void createPopup() {
@@ -550,18 +548,12 @@
             /* (non-Javadoc)
* @see ca.sqlpower.architect.swingui.PlayPenComponentListener#componentResized(ca.sqlpower.architect.swingui.PlayPenComponentEvent)
              */
- if ((evt.getPropertyName().equals("topLeftCorner") || (evt.getPropertyName().equals("lengths")))/* && isMagicEnabled()*/) { + if ((evt.getPropertyName().equals("topLeftCorner") || (evt.getPropertyName().equals("lengths")))) { logger.debug("Component "+((PlayPenComponent)(evt.getSource())).getName()+" changed size"); //$NON-NLS-1$ //$NON-NLS-2$

Point pkPoint = new Point(createPkConnectionPoint().getX(), createPkConnectionPoint().getY()); Point fkPoint = new Point(createFkConnectionPoint().getX(), createFkConnectionPoint().getY());

-                /*if (((PlayPenComponent)(evt.getSource())) == pkTable) {
- setPkConnectionPoint(((RelationshipUI) getUI()).closestEdgePoint(true, pkPoint)); // true == PK
-                }
-                if (((PlayPenComponent)(evt.getSource())) == fkTable) {
- setFkConnectionPoint(((RelationshipUI) getUI()).closestEdgePoint(false, fkPoint)); // false == FK
-                }*/
                 Point oldVal;
                 Point newVal;
                 if (evt.getPropertyName().equals("lengths")) {

Reply via email to