use of org.apache.cayenne.modeler.undo.CreateDataMapUndoableEdit in project cayenne by apache.
the class CreateDataMapAction method performAction.
public void performAction(ActionEvent e) {
ProjectController mediator = getProjectController();
DataChannelDescriptor dataChannelDescriptor = (DataChannelDescriptor) mediator.getProject().getRootNode();
DataMap map = new DataMap();
map.setName(NameBuilder.builder(map, dataChannelDescriptor).name());
createDataMap(map);
application.getUndoManager().addEdit(new CreateDataMapUndoableEdit(dataChannelDescriptor, map));
}
Aggregations