Browse Source

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

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

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

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

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

@ -78,7 +78,9 @@ public class GlobalTableDataAction extends UpdateAction implements ResponseDataS
Configurations.update(new Worker() {
@Override
public void run() {
tableDataConfig.renameTableData(oldName, newName);
if(tableDataConfig.getTableData(oldName) != null){
tableDataConfig.renameTableData(oldName, newName);
}
}
@Override

Loading…
Cancel
Save