From 3060718f502de60dadd5c3c644082c95b005e7f8 Mon Sep 17 00:00:00 2001 From: kerry Date: Mon, 5 Mar 2018 11:37:15 +0800 Subject: [PATCH] =?UTF-8?q?REPORT-6956=20=E8=AE=BE=E8=AE=A1=E5=99=A8?= =?UTF-8?q?=E9=80=82=E9=85=8D10.0=E9=85=8D=E7=BD=AE=E5=86=99=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/fr/design/actions/server/ConnectionListAction.java | 7 ++++--- .../fr/design/actions/server/GlobalTableDataAction.java | 6 +++--- 2 files changed, 7 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 bad26b770..a018ffb2c 100644 --- a/designer_base/src/com/fr/design/actions/server/ConnectionListAction.java +++ b/designer_base/src/com/fr/design/actions/server/ConnectionListAction.java @@ -2,6 +2,7 @@ package com.fr.design.actions.server; import com.fr.config.Configuration; +import com.fr.data.impl.Connection; import com.fr.design.actions.UpdateAction; import com.fr.design.data.datapane.connect.ConnectionManagerPane; import com.fr.design.data.datapane.connect.ConnectionShowPane; @@ -15,12 +16,12 @@ import com.fr.file.ConnectionConfig; import com.fr.general.IOUtils; import com.fr.general.Inter; import com.fr.locale.InterProviderFactory; -import com.fr.stable.ListMap; import com.fr.transaction.Configurations; import com.fr.transaction.Worker; import javax.swing.*; import java.awt.event.ActionEvent; +import java.util.Map; /** * DatasourceList Action @@ -163,10 +164,10 @@ public class ConnectionListAction extends UpdateAction { * @return 包含则返回序列 ,若返回-1则说明不包含重命名key */ public static int isConnectionMapContainsRename(ConnectionConfig datasourceManager) { - ListMap tableDataMap = (ListMap) datasourceManager.getConnections(); + Map tableDataMap = datasourceManager.getConnections(); String rename = InterProviderFactory.getProvider().getLocText("FR-Engine_Please_Rename") + "!"; if (tableDataMap.containsKey(rename)) { - return tableDataMap.indexOf(rename); + return datasourceManager.getConnectionIndex(rename); } //todo 这边同上面和远程修改数据集属性有关先屏蔽 // for (int i = tableDataRenameIndex; i >= 1; i--) { 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 a103af680..e8a532102 100644 --- a/designer_base/src/com/fr/design/actions/server/GlobalTableDataAction.java +++ b/designer_base/src/com/fr/design/actions/server/GlobalTableDataAction.java @@ -4,6 +4,7 @@ package com.fr.design.actions.server; import com.fr.base.BaseUtils; +import com.fr.base.TableData; import com.fr.config.Configuration; import com.fr.design.DesignModelAdapter; import com.fr.design.actions.UpdateAction; @@ -20,7 +21,6 @@ import com.fr.file.ProcedureConfig; import com.fr.file.TableDataConfig; import com.fr.general.Inter; import com.fr.locale.InterProviderFactory; -import com.fr.stable.ListMap; import com.fr.transaction.Configurations; import com.fr.transaction.Worker; @@ -184,10 +184,10 @@ public class GlobalTableDataAction extends UpdateAction implements ResponseDataS * @return 包含则返回序列 ,若返回-1则说明不包含重命名key */ public int isTableDataMapContainsRename(TableDataConfig datasourceManager) { - ListMap tableDataMap = (ListMap) datasourceManager.getTableDatas(); + Map tableDataMap = datasourceManager.getTableDatas(); String rename = InterProviderFactory.getProvider().getLocText("FR-Engine_Please_Rename") + "!"; if (tableDataMap.containsKey(rename)) { - return tableDataMap.indexOf(rename); + return datasourceManager.getTableDataIndex(rename); } //todo 这边同上面和远程修改数据集属性有关先屏蔽 // for (int i = tableDataRenameIndex; i >= 1; i--) {