currentText = document.get();
Simantics.getSession().asyncRequest(new WriteRequest() {
@Override
public void perform(WriteGraph graph) throws DatabaseException {
graph.markUndoPoint();
HelpUtils.saveHelpFileContents(graph, resource, currentText);
currentText = document.get();
Simantics.getSession().asyncRequest(new WriteRequest() {
@Override
public void perform(WriteGraph graph) throws DatabaseException {
graph.markUndoPoint();
HelpUtils.saveHelpFileContents(graph, resource, currentText);