From 9a3ccfef6f538f019d23f32e04fb72639b5c5eca Mon Sep 17 00:00:00 2001 From: kerry Date: Mon, 11 Jun 2018 18:44:51 +0800 Subject: [PATCH] REVERT --- .../com/fr/design/actions/server/ConnectionListAction.java | 4 +--- .../com/fr/design/actions/server/GlobalTableDataAction.java | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/designer-base/src/com/fr/design/actions/server/ConnectionListAction.java b/designer-base/src/com/fr/design/actions/server/ConnectionListAction.java index 3b7881c3d..e14b22b6d 100644 --- a/designer-base/src/com/fr/design/actions/server/ConnectionListAction.java +++ b/designer-base/src/com/fr/design/actions/server/ConnectionListAction.java @@ -68,9 +68,7 @@ public class ConnectionListAction extends UpdateAction { } protected void renameConnection(String oldName, String newName) { - if(datasourceManager.getConnection(oldName) != null){ - datasourceManager.renameConnection(oldName, newName); - } + datasourceManager.renameConnection(oldName, newName); } }; final BasicDialog databaseListDialog = databaseManagerPane.showLargeWindow(designerFrame, null); diff --git a/designer-base/src/com/fr/design/actions/server/GlobalTableDataAction.java b/designer-base/src/com/fr/design/actions/server/GlobalTableDataAction.java index 946fa61f5..b723b9928 100644 --- a/designer-base/src/com/fr/design/actions/server/GlobalTableDataAction.java +++ b/designer-base/src/com/fr/design/actions/server/GlobalTableDataAction.java @@ -78,9 +78,7 @@ public class GlobalTableDataAction extends UpdateAction implements ResponseDataS Configurations.update(new Worker() { @Override public void run() { - if(tableDataConfig.getTableData(oldName) != null){ - tableDataConfig.renameTableData(oldName, newName); - } + tableDataConfig.renameTableData(oldName, newName); } @Override