use of org.apache.cayenne.modeler.undo.CreateProcedureUndoableEdit in project cayenne by apache.
the class CreateProcedureAction method performAction.
public void performAction(ActionEvent e) {
ProjectController mediator = getProjectController();
DataMap map = mediator.getCurrentDataMap();
Procedure procedure = new Procedure();
procedure.setName(NameBuilder.builder(procedure, map).name());
createProcedure(map, procedure);
application.getUndoManager().addEdit(new CreateProcedureUndoableEdit(map, procedure));
}
Aggregations