public void setXsdSchema(String xsd) {
    try {
      xsdSchema = Util.createXsdSchema(xsd, treeObj);
    } catch (Exception e) {

      log.error(e.getMessage(), e);
    }
  }
Example #2
0
 private void refresh(String content) {
   XSDSchema xsd;
   try {
     xsd = Util.createXsdSchema(content, page.getXObject());
   } catch (Exception e) {
     log.error(e.getMessage(), e);
     return;
   }
   page.setXsdSchema(xsd);
   page.refresh();
   page.markDirtyWithoutCommit();
 }