Exemplo n.º 1
0
 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;
 }
Exemplo n.º 2
0
 private void resetDomain() {
   ThreadHandler.getInstance().clear(); // Terminate all running threads.
   attachDomainChangedModel();
   disposeMainWindow();
 }
Exemplo n.º 3
0
 private void initializeDomain() {
   d_domainMgr = new DomainManager();
   attachDomainChangedModel();
 }