(Currently used with XMLMemento to persist StyleEntry, it is hoped that an EMFMemento can be writen).
252253254255256257258259260261262
return; } try { // save the state of the style XMLMemento memento = XMLMemento.createWriteRoot("styleEntry"); //$NON-NLS-1$ styleContent.save(memento, style); StringWriter writer = new StringWriter(); memento.save(writer); se.setMemento(writer.getBuffer().toString());