\r
import org.simantics.db.ReadGraph;\r
import org.simantics.db.Resource;\r
-import org.simantics.db.UndoContext;\r
import org.simantics.db.WriteGraph;\r
-import org.simantics.db.common.UndoWriteRequest;\r
+import org.simantics.db.common.request.WriteRequest;\r
import org.simantics.db.exception.DatabaseException;\r
import org.simantics.db.request.Read;\r
import org.simantics.diagram.participant.ConnectTool2;\r
import org.simantics.diagram.participant.ConnectionBuilder;\r
import org.simantics.diagram.participant.ControlPoint;\r
-import org.simantics.diagram.ui.DiagramModelHints;\r
import org.simantics.g2d.canvas.impl.SGNodeReflection.SGInit;\r
import org.simantics.g2d.connection.IConnectionAdvisor;\r
import org.simantics.g2d.diagram.DiagramHints;\r
\r
if(this.connectionJudgment == null) return;\r
\r
- final UndoContext uctx = diagram.getHint(DiagramModelHints.KEY_UNDO_CONTEXT);\r
final ConnectionJudgement judgment = this.connectionJudgment;\r
// ConnectionBuilder changed to SysdynconnectionBuilder to support overlapping terminals and valve creation\r
final ConnectionBuilder builder = new SysdynConnectionBuilder(this.diagram);\r
final TerminalInfo startTerminal = this.startTerminal;\r
final TerminalInfo endTerminal = this.endTerminal;\r
\r
- SimanticsUI.getSession().asyncRequest(new UndoWriteRequest(uctx, true) {\r
+ SimanticsUI.getSession().asyncRequest(new WriteRequest() {\r
@Override\r
public void perform(WriteGraph graph) throws DatabaseException {\r
builder.create(graph, judgment, controlPoints, startTerminal, endTerminal);\r