|
|
@ -10,6 +10,7 @@ import com.fr.design.actions.help.alphafine.AlphaFineConfigManager; |
|
|
|
import com.fr.design.constants.UIConstants; |
|
|
|
import com.fr.design.constants.UIConstants; |
|
|
|
import com.fr.design.env.DesignerWorkspaceGenerator; |
|
|
|
import com.fr.design.env.DesignerWorkspaceGenerator; |
|
|
|
import com.fr.design.env.DesignerWorkspaceInfo; |
|
|
|
import com.fr.design.env.DesignerWorkspaceInfo; |
|
|
|
|
|
|
|
import com.fr.design.env.DesignerWorkspaceType; |
|
|
|
import com.fr.design.env.LocalDesignerWorkspaceInfo; |
|
|
|
import com.fr.design.env.LocalDesignerWorkspaceInfo; |
|
|
|
import com.fr.design.env.RemoteDesignerWorkspaceInfo; |
|
|
|
import com.fr.design.env.RemoteDesignerWorkspaceInfo; |
|
|
|
import com.fr.file.FILEFactory; |
|
|
|
import com.fr.file.FILEFactory; |
|
|
@ -35,10 +36,9 @@ import com.fr.stable.xml.XMLWriter; |
|
|
|
import com.fr.stable.xml.XMLableReader; |
|
|
|
import com.fr.stable.xml.XMLableReader; |
|
|
|
import com.fr.workspace.WorkContext; |
|
|
|
import com.fr.workspace.WorkContext; |
|
|
|
|
|
|
|
|
|
|
|
import javax.swing.SwingWorker; |
|
|
|
import javax.swing.*; |
|
|
|
import javax.swing.SwingWorker.StateValue; |
|
|
|
import javax.swing.SwingWorker.StateValue; |
|
|
|
import java.awt.Color; |
|
|
|
import java.awt.*; |
|
|
|
import java.awt.Rectangle; |
|
|
|
|
|
|
|
import java.io.File; |
|
|
|
import java.io.File; |
|
|
|
import java.io.FileOutputStream; |
|
|
|
import java.io.FileOutputStream; |
|
|
|
import java.io.FileReader; |
|
|
|
import java.io.FileReader; |
|
|
@ -1475,10 +1475,10 @@ public class DesignerEnvManager implements XMLReadable, XMLWriter { |
|
|
|
public void readXML(XMLableReader reader) { |
|
|
|
public void readXML(XMLableReader reader) { |
|
|
|
if (reader.isChildNode()) { |
|
|
|
if (reader.isChildNode()) { |
|
|
|
String tagName = reader.getTagName(); |
|
|
|
String tagName = reader.getTagName(); |
|
|
|
if (LocalDesignerWorkspaceInfo.XML_TAG.equals(tagName)) { |
|
|
|
if (DesignerWorkspaceType.Local.toString().equals(tagName)) { |
|
|
|
LocalDesignerWorkspaceInfo envConfig = (LocalDesignerWorkspaceInfo) GeneralXMLTools.readXMLable(reader); |
|
|
|
LocalDesignerWorkspaceInfo envConfig = (LocalDesignerWorkspaceInfo) GeneralXMLTools.readXMLable(reader); |
|
|
|
putEnv(name, envConfig); |
|
|
|
putEnv(name, envConfig); |
|
|
|
} else if (RemoteDesignerWorkspaceInfo.XML_TAG.equals(tagName)) { |
|
|
|
} else if (DesignerWorkspaceType.Remote.toString().equals(tagName)) { |
|
|
|
RemoteDesignerWorkspaceInfo envConfig = (RemoteDesignerWorkspaceInfo) GeneralXMLTools.readXMLable(reader); |
|
|
|
RemoteDesignerWorkspaceInfo envConfig = (RemoteDesignerWorkspaceInfo) GeneralXMLTools.readXMLable(reader); |
|
|
|
putEnv(name, envConfig); |
|
|
|
putEnv(name, envConfig); |
|
|
|
} |
|
|
|
} |
|
|
@ -1605,7 +1605,7 @@ public class DesignerEnvManager implements XMLReadable, XMLWriter { |
|
|
|
for (Entry<String, DesignerWorkspaceInfo> entry : nameEnvMap.entrySet()) { |
|
|
|
for (Entry<String, DesignerWorkspaceInfo> entry : nameEnvMap.entrySet()) { |
|
|
|
writer.startTAG("EnvConfigElement").attr("name", entry.getKey()); |
|
|
|
writer.startTAG("EnvConfigElement").attr("name", entry.getKey()); |
|
|
|
DesignerWorkspaceInfo envConfig = entry.getValue(); |
|
|
|
DesignerWorkspaceInfo envConfig = entry.getValue(); |
|
|
|
GeneralXMLTools.writeXMLable(writer, envConfig, envConfig.XML_TAG); |
|
|
|
GeneralXMLTools.writeXMLable(writer, envConfig, envConfig.getType().toString()); |
|
|
|
writer.end(); |
|
|
|
writer.end(); |
|
|
|
} |
|
|
|
} |
|
|
|
writer.end(); |
|
|
|
writer.end(); |
|
|
|