Browse Source

REPORT-8665 10.0设计器定义数据连接名字保存不了

master
kerry 7 years ago
parent
commit
380d744c2f
  1. 2
      designer-base/src/com/fr/design/actions/server/ConnectionListAction.java
  2. 2
      designer-base/src/com/fr/design/actions/server/GlobalTableDataAction.java

2
designer-base/src/com/fr/design/actions/server/ConnectionListAction.java

@ -68,8 +68,10 @@ public class ConnectionListAction extends UpdateAction {
}
protected void renameConnection(String oldName, String newName) {
if(datasourceManager.getConnection(oldName) != null){
datasourceManager.renameConnection(oldName, newName);
}
}
};
final BasicDialog databaseListDialog = databaseManagerPane.showLargeWindow(designerFrame, null);
databaseListDialog.addDialogActionListener(new DialogActionAdapter() {

2
designer-base/src/com/fr/design/actions/server/GlobalTableDataAction.java

@ -78,8 +78,10 @@ public class GlobalTableDataAction extends UpdateAction implements ResponseDataS
Configurations.update(new Worker() {
@Override
public void run() {
if(tableDataConfig.getTableData(oldName) != null){
tableDataConfig.renameTableData(oldName, newName);
}
}
@Override
public Class<? extends Configuration>[] targets() {

Loading…
Cancel
Save