|
|
@ -1,6 +1,14 @@ |
|
|
|
package com.fr.env; |
|
|
|
package com.fr.env; |
|
|
|
|
|
|
|
|
|
|
|
import com.fr.base.*; |
|
|
|
import com.fr.base.AbstractEnv; |
|
|
|
|
|
|
|
import com.fr.base.EnvException; |
|
|
|
|
|
|
|
import com.fr.base.FRContext; |
|
|
|
|
|
|
|
import com.fr.base.FRCoreContext; |
|
|
|
|
|
|
|
import com.fr.base.ModifiedTable; |
|
|
|
|
|
|
|
import com.fr.base.Parameter; |
|
|
|
|
|
|
|
import com.fr.base.StoreProcedureParameter; |
|
|
|
|
|
|
|
import com.fr.base.TableData; |
|
|
|
|
|
|
|
import com.fr.base.Utils; |
|
|
|
import com.fr.base.remote.RemoteDeziConstants; |
|
|
|
import com.fr.base.remote.RemoteDeziConstants; |
|
|
|
import com.fr.data.core.DataCoreUtils; |
|
|
|
import com.fr.data.core.DataCoreUtils; |
|
|
|
import com.fr.data.core.db.TableProcedure; |
|
|
|
import com.fr.data.core.db.TableProcedure; |
|
|
@ -22,7 +30,12 @@ import com.fr.file.CacheManager; |
|
|
|
import com.fr.file.DatasourceManager; |
|
|
|
import com.fr.file.DatasourceManager; |
|
|
|
import com.fr.file.DatasourceManagerProvider; |
|
|
|
import com.fr.file.DatasourceManagerProvider; |
|
|
|
import com.fr.file.filetree.FileNode; |
|
|
|
import com.fr.file.filetree.FileNode; |
|
|
|
import com.fr.general.*; |
|
|
|
import com.fr.general.ComparatorUtils; |
|
|
|
|
|
|
|
import com.fr.general.FRLogger; |
|
|
|
|
|
|
|
import com.fr.general.IOUtils; |
|
|
|
|
|
|
|
import com.fr.general.Inter; |
|
|
|
|
|
|
|
import com.fr.general.LogRecordTime; |
|
|
|
|
|
|
|
import com.fr.general.VT4FR; |
|
|
|
import com.fr.general.http.HttpClient; |
|
|
|
import com.fr.general.http.HttpClient; |
|
|
|
import com.fr.json.JSONArray; |
|
|
|
import com.fr.json.JSONArray; |
|
|
|
import com.fr.json.JSONException; |
|
|
|
import com.fr.json.JSONException; |
|
|
@ -32,7 +45,14 @@ import com.fr.plugin.PluginLicense; |
|
|
|
import com.fr.plugin.PluginLicenseManager; |
|
|
|
import com.fr.plugin.PluginLicenseManager; |
|
|
|
import com.fr.plugin.PluginLoader; |
|
|
|
import com.fr.plugin.PluginLoader; |
|
|
|
import com.fr.share.ShareConstants; |
|
|
|
import com.fr.share.ShareConstants; |
|
|
|
import com.fr.stable.*; |
|
|
|
import com.fr.stable.ArrayUtils; |
|
|
|
|
|
|
|
import com.fr.stable.EncodeConstants; |
|
|
|
|
|
|
|
import com.fr.stable.JavaCompileInfo; |
|
|
|
|
|
|
|
import com.fr.stable.LicUtils; |
|
|
|
|
|
|
|
import com.fr.stable.ProductConstants; |
|
|
|
|
|
|
|
import com.fr.stable.StableUtils; |
|
|
|
|
|
|
|
import com.fr.stable.StringUtils; |
|
|
|
|
|
|
|
import com.fr.stable.SvgProvider; |
|
|
|
import com.fr.stable.file.XMLFileManagerProvider; |
|
|
|
import com.fr.stable.file.XMLFileManagerProvider; |
|
|
|
import com.fr.stable.project.ProjectConstants; |
|
|
|
import com.fr.stable.project.ProjectConstants; |
|
|
|
import com.fr.stable.xml.XMLPrintWriter; |
|
|
|
import com.fr.stable.xml.XMLPrintWriter; |
|
|
@ -41,17 +61,37 @@ import com.fr.stable.xml.XMLableReader; |
|
|
|
import com.fr.web.ResourceConstants; |
|
|
|
import com.fr.web.ResourceConstants; |
|
|
|
|
|
|
|
|
|
|
|
import javax.swing.*; |
|
|
|
import javax.swing.*; |
|
|
|
import javax.xml.transform.*; |
|
|
|
import javax.xml.transform.Source; |
|
|
|
|
|
|
|
import javax.xml.transform.Transformer; |
|
|
|
|
|
|
|
import javax.xml.transform.TransformerConfigurationException; |
|
|
|
|
|
|
|
import javax.xml.transform.TransformerException; |
|
|
|
|
|
|
|
import javax.xml.transform.TransformerFactory; |
|
|
|
import javax.xml.transform.dom.DOMSource; |
|
|
|
import javax.xml.transform.dom.DOMSource; |
|
|
|
import javax.xml.transform.stream.StreamResult; |
|
|
|
import javax.xml.transform.stream.StreamResult; |
|
|
|
import java.awt.*; |
|
|
|
import java.awt.*; |
|
|
|
import java.io.*; |
|
|
|
import java.io.BufferedReader; |
|
|
|
|
|
|
|
import java.io.ByteArrayInputStream; |
|
|
|
|
|
|
|
import java.io.ByteArrayOutputStream; |
|
|
|
|
|
|
|
import java.io.File; |
|
|
|
|
|
|
|
import java.io.FileInputStream; |
|
|
|
|
|
|
|
import java.io.FileOutputStream; |
|
|
|
|
|
|
|
import java.io.FilenameFilter; |
|
|
|
|
|
|
|
import java.io.IOException; |
|
|
|
|
|
|
|
import java.io.InputStream; |
|
|
|
|
|
|
|
import java.io.InputStreamReader; |
|
|
|
|
|
|
|
import java.io.OutputStream; |
|
|
|
|
|
|
|
import java.io.OutputStreamWriter; |
|
|
|
|
|
|
|
import java.io.UnsupportedEncodingException; |
|
|
|
import java.net.HttpURLConnection; |
|
|
|
import java.net.HttpURLConnection; |
|
|
|
import java.net.NoRouteToHostException; |
|
|
|
import java.net.NoRouteToHostException; |
|
|
|
import java.net.Socket; |
|
|
|
import java.net.Socket; |
|
|
|
import java.util.*; |
|
|
|
import java.util.ArrayList; |
|
|
|
|
|
|
|
import java.util.HashMap; |
|
|
|
|
|
|
|
import java.util.Iterator; |
|
|
|
import java.util.List; |
|
|
|
import java.util.List; |
|
|
|
|
|
|
|
import java.util.Map; |
|
|
|
import java.util.Timer; |
|
|
|
import java.util.Timer; |
|
|
|
|
|
|
|
import java.util.TimerTask; |
|
|
|
import java.util.logging.Level; |
|
|
|
import java.util.logging.Level; |
|
|
|
import java.util.regex.Pattern; |
|
|
|
import java.util.regex.Pattern; |
|
|
|
|
|
|
|
|
|
|
@ -1387,13 +1427,17 @@ public class RemoteEnv extends AbstractEnv { |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
SignIn.signIn(remoteEnv); |
|
|
|
SignIn.signIn(remoteEnv); |
|
|
|
LicUtils.resetBytes(); |
|
|
|
resetLicenseBytes(); |
|
|
|
HistoryTemplateListPane.getInstance().getCurrentEditingTemplate().refreshToolArea(); |
|
|
|
HistoryTemplateListPane.getInstance().getCurrentEditingTemplate().refreshToolArea(); |
|
|
|
} catch (Exception em) { |
|
|
|
} catch (Exception em) { |
|
|
|
FRContext.getLogger().error(em.getMessage(), em); |
|
|
|
FRContext.getLogger().error(em.getMessage(), em); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private void resetLicenseBytes() { |
|
|
|
|
|
|
|
FRCoreContext.retryLicLock(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* 停止连接 |
|
|
|
* 停止连接 |
|
|
|
*/ |
|
|
|
*/ |
|
|
|