private XmlFormatType loadDomainFromInputStream(InputStream in) throws IOException { BufferedInputStream fis = new BufferedInputStream(in); XmlFormatType xmlType = JAXBHandler.determineXmlType(fis); if (!xmlType.isValid() || xmlType.isFuture()) { return xmlType; } else if (xmlType.isLegacy()) { d_domainMgr.loadLegacyXMLDomain(fis); } else { d_domainMgr.loadXMLDomain(fis, xmlType.getVersion()); } attachDomainChangedModel(); return xmlType; }
private void resetDomain() { ThreadHandler.getInstance().clear(); // Terminate all running threads. attachDomainChangedModel(); disposeMainWindow(); }
private void initializeDomain() { d_domainMgr = new DomainManager(); attachDomainChangedModel(); }