Revision: 3683
Author: [email protected]
Date: Tue Jul 6 15:49:24 2010
Log: The name, physical name, and primary key name of a table now all get
updated to match if they started as the same value. This will hopefully
reduce confusion when you create a table with a reasonable name but forward
engineering it calls it "New_Table"
http://code.google.com/p/power-architect/source/detail?r=3683
Modified:
/trunk/src/main/java/ca/sqlpower/architect/swingui/TableEditPanel.java
/trunk/src/main/java/ca/sqlpower/architect/swingui/action/CreateTableAction.java
=======================================
--- /trunk/src/main/java/ca/sqlpower/architect/swingui/TableEditPanel.java
Wed May 5 12:38:23 2010
+++ /trunk/src/main/java/ca/sqlpower/architect/swingui/TableEditPanel.java
Tue Jul 6 15:49:24 2010
@@ -158,8 +158,8 @@
table.getPrimaryKeyIndex().setName(pkName.getText());
}
- table.setName(logicalName.getText());
table.setPhysicalName(physicalName.getText());
+ table.setName(logicalName.getText());
table.setRemarks(remarks.getText());
if (tp != null) {
=======================================
---
/trunk/src/main/java/ca/sqlpower/architect/swingui/action/CreateTableAction.java
Wed May 5 12:38:23 2010
+++
/trunk/src/main/java/ca/sqlpower/architect/swingui/action/CreateTableAction.java
Tue Jul 6 15:49:24 2010
@@ -63,7 +63,7 @@
SQLTable t = null;
t = new SQLTable();
t.initFolders(true);
- //t.setName("New_Table"); //$NON-NLS-1$
+ t.setName(NEW_TABLE_NAME); //$NON-NLS-1$
TablePane tp = new TablePane(t, playpen.getContentPane());
TablePlacer tablePlacer = new TablePlacer(playpen, tp);