use of electric.xml.XMLDecl in project blue by kunstmusik.
the class CodeRepositoryManager method saveCodeRepository.
public static void saveCodeRepository(DefaultMutableTreeNode node) {
Element root = getElement(node);
Document doc = new Document();
doc.addChild(new XMLDecl("1.0", "UTF-8"));
doc.setRoot(root);
try {
try (FileOutputStream out = new FileOutputStream(BlueSystem.getCodeRepository())) {
doc.write(out);
out.flush();
}
} catch (Exception e) {
e.printStackTrace();
}
CodeRepositoryMenu.reinitialize();
}
Aggregations