×

Model-based system and method for undoing actions in an application

  • US 10,120,766 B2
  • Filed: 10/16/2015
  • Issued: 11/06/2018
  • Est. Priority Date: 10/16/2015
  • Status: Active Grant
First Claim
Patent Images

1. A method for undoing actions in an application comprising:

  • launching an undo management process configured to operate with the application;

    building an object model for objects invoked by the application, wherein the object model comprises an object tree data structure having nodes containing metadata of an object;

    taking a first snapshot of the object model;

    freezing the object model;

    receiving a first action from the application comprising an edit to be applied to the object at a leaf node of the object tree data structure;

    unfreezing a first portion of the object tree data structure along a path of object nodes from the leaf node being modified by the edit up to its root node;

    applying the edit to the object at the leaf node of the object tree data structure;

    re-freezing the first portion of the object tree data structure to obtain a re-frozen object model;

    taking a second snapshot of the re-frozen object model;

    storing a difference between the first snapshot and the second snapshot into a first memory buffer as difference data representing the first action;

    receiving a second action from the application comprising an undo command configured to undo the first action comprising the edit to the object;

    retrieving the difference data representing the first action from the first memory buffer;

    storing the difference data into a second memory buffer; and

    undoing the first action comprising the edit to the object by restoring the object model back to its state when the first snapshot was taken.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×