From 21dee0f9b3cf39445c198f8229e85364e759aba9 Mon Sep 17 00:00:00 2001 From: hzzz Date: Mon, 4 Jun 2018 21:00:52 +0800 Subject: [PATCH 1/3] fix --- .../com/fr/design/gui/itree/filetree/TemplateFileTree.java | 6 +++--- .../src/com/fr/design/remote/ui/UserManagerPane.java | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/designer-base/src/com/fr/design/gui/itree/filetree/TemplateFileTree.java b/designer-base/src/com/fr/design/gui/itree/filetree/TemplateFileTree.java index 9818334914..d04992876c 100644 --- a/designer-base/src/com/fr/design/gui/itree/filetree/TemplateFileTree.java +++ b/designer-base/src/com/fr/design/gui/itree/filetree/TemplateFileTree.java @@ -1,9 +1,9 @@ package com.fr.design.gui.itree.filetree; import com.fr.base.Env; -import com.fr.base.env.EnvContext; -import com.fr.base.env.proxy.EnvProxy; -import com.fr.base.env.resource.EnvConfigUtils; +import com.fr.core.env.EnvContext; +import com.fr.core.env.proxy.EnvProxy; +import com.fr.core.env.resource.EnvConfigUtils; import com.fr.design.gui.itree.refreshabletree.ExpandMutableTreeNode; import com.fr.env.operator.file.TplFileOperator; import com.fr.file.filetree.FileNode; diff --git a/designer-base/src/com/fr/design/remote/ui/UserManagerPane.java b/designer-base/src/com/fr/design/remote/ui/UserManagerPane.java index 0f1fcc6f80..2c568583a9 100644 --- a/designer-base/src/com/fr/design/remote/ui/UserManagerPane.java +++ b/designer-base/src/com/fr/design/remote/ui/UserManagerPane.java @@ -1,8 +1,8 @@ package com.fr.design.remote.ui; -import com.fr.base.env.EnvContext; -import com.fr.base.env.proxy.EnvProxy; -import com.fr.base.env.resource.EnvConfigUtils; +import com.fr.core.env.EnvContext; +import com.fr.core.env.proxy.EnvProxy; +import com.fr.core.env.resource.EnvConfigUtils; import com.fr.design.border.UITitledBorder; import com.fr.design.dialog.BasicPane; import com.fr.design.gui.ibutton.UIButton; From ecc7077359ca4d065d87465a2a0c76d067b1a51c Mon Sep 17 00:00:00 2001 From: hzzz Date: Mon, 4 Jun 2018 21:10:05 +0800 Subject: [PATCH 2/3] fix --- .../remote/action/RemoteDesignAuthorityManagerAction.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/designer-base/src/com/fr/design/remote/action/RemoteDesignAuthorityManagerAction.java b/designer-base/src/com/fr/design/remote/action/RemoteDesignAuthorityManagerAction.java index 8d222701f5..8d22b77a44 100644 --- a/designer-base/src/com/fr/design/remote/action/RemoteDesignAuthorityManagerAction.java +++ b/designer-base/src/com/fr/design/remote/action/RemoteDesignAuthorityManagerAction.java @@ -2,7 +2,7 @@ package com.fr.design.remote.action; import com.fr.base.BaseUtils; import com.fr.base.FRContext; -import com.fr.base.env.proxy.EnvProxy; +import com.fr.core.env.proxy.EnvProxy; import com.fr.design.actions.UpdateAction; import com.fr.design.dialog.BasicDialog; import com.fr.design.dialog.DialogActionAdapter; From d8838e5bced3372e921c04d49e7ab9325c56f02c Mon Sep 17 00:00:00 2001 From: hzzz Date: Tue, 5 Jun 2018 09:35:33 +0800 Subject: [PATCH 3/3] =?UTF-8?q?operator=E6=B3=A8=E5=86=8C=E4=BB=8Eengine-c?= =?UTF-8?q?ross=E7=A7=BB=E5=8A=A8=E5=88=B0designer-env?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../FormMobileTemplateSettingsPane.java | 2 +- .../fr/start/module/DesignerEnvProvider.java | 169 +++++++++++++++++- 2 files changed, 165 insertions(+), 6 deletions(-) diff --git a/designer-form/src/com/fr/design/form/mobile/FormMobileTemplateSettingsPane.java b/designer-form/src/com/fr/design/form/mobile/FormMobileTemplateSettingsPane.java index dbb758a90d..b17a3caea2 100644 --- a/designer-form/src/com/fr/design/form/mobile/FormMobileTemplateSettingsPane.java +++ b/designer-form/src/com/fr/design/form/mobile/FormMobileTemplateSettingsPane.java @@ -38,7 +38,7 @@ public class FormMobileTemplateSettingsPane extends BasicBeanPane( + new OldSerializerAdapter.OldSerializer() { + @Override + public void serializer(ModifiedTable obj, OutputStream out) throws Exception { + DavXMLUtils.writeXMLModifiedTables(obj, out); + } + }, + new OldSerializerAdapter.OldDeserializer() { + @Override + public ModifiedTable desializer(InputStream in) throws Exception { + return DavXMLUtils.readXMLModifiedTables(in); + } + } + )); + + EnvProxy.addSerializer(com.fr.data.impl.Connection.class, new OldSerializerAdapter( + new OldSerializerAdapter.OldSerializer() { + @Override + public void serializer(Connection obj, OutputStream out) { + DavXMLUtils.writeXMLFileDatabaseConnection(obj, out); + } + }, + new OldSerializerAdapter.OldDeserializer() { + @Override + public Connection desializer(InputStream in) throws Exception { + return DavXMLUtils.readXMLDatabaseConnection(in); + } + } + )); + + EnvProxy.addSerializer(FileNode[].class, new OldSerializerAdapter( + new OldSerializerAdapter.OldSerializer() { + @Override + public void serializer(FileNode[] obj, OutputStream out) { + DavXMLUtils.writeXMLFileNodes(obj, out); + } + }, + new OldSerializerAdapter.OldDeserializer() { + @Override + public FileNode[] desializer(InputStream in) { + return DavXMLUtils.readXMLFileNodes(in); + } + } + )); + + EnvProxy.addSerializer(TableProcedure[].class, new OldSerializerAdapter( + new OldSerializerAdapter.OldSerializer() { + @Override + public void serializer(TableProcedure[] obj, OutputStream out) { + DavXMLUtils.writeXMLFileSQLTable(obj, out); + } + }, + new OldSerializerAdapter.OldDeserializer() { + @Override + public TableProcedure[] desializer(InputStream in) throws Exception { + return DavXMLUtils.readXMLSQLTables(in); + } + } + )); + + EnvProxy.addSerializer(TableData.class, new OldSerializerAdapter( + new OldSerializerAdapter.OldSerializer() { + @Override + public void serializer(TableData obj, OutputStream out) { + DavXMLUtils.writeXMLFileTableData(obj, out); + } + }, + new OldSerializerAdapter.OldDeserializer() { + @Override + public TableData desializer(InputStream in) throws Exception { + return DavXMLUtils.readXMLTableData(in); + } + } + )); + + EnvProxy.addSerializer(Parameter[].class, new OldSerializerAdapter( + new OldSerializerAdapter.OldSerializer() { + @Override + public void serializer(Parameter[] obj, OutputStream out) { + DavXMLUtils.writeXMLFileParameters(obj, out); + } + }, + new OldSerializerAdapter.OldDeserializer() { + @Override + public Parameter[] desializer(InputStream in) throws Exception { + return DavXMLUtils.readXMLParameters(in); + } + } + )); + + EnvProxy.addSerializer(StoreProcedure.class, new OldSerializerAdapter( + new OldSerializerAdapter.OldSerializer() { + @Override + public void serializer(StoreProcedure obj, OutputStream out) { + DavXMLUtils.writeXMLFileStoreProcedure(obj, out); + } + }, + new OldSerializerAdapter.OldDeserializer() { + @Override + public StoreProcedure desializer(InputStream in) throws Exception { + return DavXMLUtils.readXMLStoreProcedure(in); + } + } + )); + + EnvProxy.addSerializer(StoreProcedureParameter[].class, new OldSerializerAdapter( + new OldSerializerAdapter.OldSerializer() { + @Override + public void serializer(StoreProcedureParameter[] obj, OutputStream out) { + DavXMLUtils.writeXMLFileParameters(obj, out); + } + }, + new OldSerializerAdapter.OldDeserializer() { + @Override + public StoreProcedureParameter[] desializer(InputStream in) throws Exception { + return DavXMLUtils.readXMLStoreProcedureParameters(in); + } + } + )); + } + }