Revision: 4060
Author: [email protected]
Date: Wed May 22 13:51:29 2013
Log: Fixed bug: 2074. When copying tables with relationship between
them, it was not able to paste/create a relationship. Fixed copy/paste
behaviour with relationship.
http://code.google.com/p/power-architect/source/detail?r=4060
Modified:
/trunk/src/main/java/ca/sqlpower/architect/swingui/PlayPen.java
=======================================
--- /trunk/src/main/java/ca/sqlpower/architect/swingui/PlayPen.java Wed May
22 07:34:00 2013
+++ /trunk/src/main/java/ca/sqlpower/architect/swingui/PlayPen.java Wed May
22 13:51:29 2013
@@ -1300,11 +1300,10 @@
logger.info("adding table "+newTable); //$NON-NLS-1$
addImpl(tp, preferredLocation);
tp.revalidate();
-
- if (duplicateProperties.getDefaultTransferStyle() ==
TransferStyles.REVERSE_ENGINEER) {
- createRelationshipsFromPP(source, newTable, true,
isAlreadyOnPlaypen, suffix);
- createRelationshipsFromPP(source, newTable, false,
isAlreadyOnPlaypen, suffix);
- }
+
+ createRelationshipsFromPP(source, newTable, true, isAlreadyOnPlaypen,
suffix);
+ createRelationshipsFromPP(source, newTable, false, isAlreadyOnPlaypen,
suffix);
+
return tp;
}
--
---
You received this message because you are subscribed to the Google Groups "Architect Commits" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.