Author: daceywang
Date: Mon Apr 27 15:01:14 2009
New Revision: 3018
Modified:
trunk/src/ca/sqlpower/architect/swingui/RelationshipEditPanel.java
Log:
So far the new code is exactly the same as the old one. But if we start to
support editing multiple relationships at a same time, the new code will run
faster.
Modified: trunk/src/ca/sqlpower/architect/swingui/RelationshipEditPanel.java
==============================================================================
--- trunk/src/ca/sqlpower/architect/swingui/RelationshipEditPanel.java
(original)
+++ trunk/src/ca/sqlpower/architect/swingui/RelationshipEditPanel.java Mon
Apr 27 15:01:14 2009
@@ -121,12 +121,7 @@
relationshipLines =
session.getPlayPen().getSelectedRelationShips();
//Since now can only select one relationship to edit at the same
time,
//so the number of selected relationships is only 1.
- for(Relationship r: relationshipLines) {
- if(logger.isDebugEnabled()) {
- logger.debug("This relationship is : " + r); //$NON-NLS-1$
- }
- this.color = r.getForegroundColor();
- }
+ this.color = relationshipLines.get(0).getForegroundColor();
FormLayout layout = new FormLayout("pref, 4dlu, pref:grow, 4dlu,
pref, 4dlu, pref:grow"); //$NON-NLS-1$
layout.setColumnGroups(new int[][] { { 3, 7 } });