|
|
@ -9,7 +9,6 @@ import com.fr.data.impl.JNDIDatabaseConnection; |
|
|
|
import com.fr.data.metric.utils.DatabaseConnectionMetricHandler; |
|
|
|
import com.fr.data.metric.utils.DatabaseConnectionMetricHandler; |
|
|
|
import com.fr.data.operator.DataOperator; |
|
|
|
import com.fr.data.operator.DataOperator; |
|
|
|
import com.fr.design.ExtraDesignClassManager; |
|
|
|
import com.fr.design.ExtraDesignClassManager; |
|
|
|
import com.fr.general.MapCompareUtils; |
|
|
|
|
|
|
|
import com.fr.design.dialog.BasicDialog; |
|
|
|
import com.fr.design.dialog.BasicDialog; |
|
|
|
import com.fr.design.fun.ConnectionProvider; |
|
|
|
import com.fr.design.fun.ConnectionProvider; |
|
|
|
import com.fr.design.gui.controlpane.JListControlPane; |
|
|
|
import com.fr.design.gui.controlpane.JListControlPane; |
|
|
@ -19,7 +18,9 @@ import com.fr.design.gui.ilist.ListModelElement; |
|
|
|
import com.fr.design.i18n.Toolkit; |
|
|
|
import com.fr.design.i18n.Toolkit; |
|
|
|
import com.fr.event.EventDispatcher; |
|
|
|
import com.fr.event.EventDispatcher; |
|
|
|
import com.fr.file.ConnectionConfig; |
|
|
|
import com.fr.file.ConnectionConfig; |
|
|
|
import com.fr.file.ConnectionOperator; |
|
|
|
import com.fr.file.ConnectionService; |
|
|
|
|
|
|
|
import com.fr.file.ConnectionsChange; |
|
|
|
|
|
|
|
import com.fr.general.MapCompareUtils; |
|
|
|
import com.fr.general.NameObject; |
|
|
|
import com.fr.general.NameObject; |
|
|
|
import com.fr.license.database.DBTypes; |
|
|
|
import com.fr.license.database.DBTypes; |
|
|
|
import com.fr.license.database.DataBaseTypePointManager; |
|
|
|
import com.fr.license.database.DataBaseTypePointManager; |
|
|
@ -332,8 +333,8 @@ public class ConnectionListPane extends JListControlPane implements ConnectionSh |
|
|
|
private void alterConnections(List<String> removedConnNames, List<ConnectionBean> addedOrUpdatedConnections) { |
|
|
|
private void alterConnections(List<String> removedConnNames, List<ConnectionBean> addedOrUpdatedConnections) { |
|
|
|
|
|
|
|
|
|
|
|
try { |
|
|
|
try { |
|
|
|
WorkContext.getCurrent().get(ConnectionOperator.class, exceptionInfo -> saveByOldWay(removedConnNames, addedOrUpdatedConnections)) |
|
|
|
WorkContext.getCurrent().get(ConnectionService.class, exceptionInfo -> saveByOldWay(removedConnNames, addedOrUpdatedConnections)) |
|
|
|
.saveConnection(removedConnNames, addedOrUpdatedConnections); |
|
|
|
.apply(new ConnectionsChange(removedConnNames, addedOrUpdatedConnections)); |
|
|
|
|
|
|
|
|
|
|
|
// hades:远程环境时,由于时直接RPC调用远程修改,因此设计器本地配置需要失效
|
|
|
|
// hades:远程环境时,由于时直接RPC调用远程修改,因此设计器本地配置需要失效
|
|
|
|
if (!WorkContext.getCurrent().isLocal()) { |
|
|
|
if (!WorkContext.getCurrent().isLocal()) { |
|
|
|