US 11,914,584 B2
Method and apparatus for reset command configuration, device and storage medium
Hai Quang Kim, Los Angeles, CA (US); Cheng Fang, Beijing (CN); and Lu Tao, Beijing (CN)
Assigned to LEMON INC., Grand Cayman (KY)
Filed by Lemon Inc., Grand Cayman (KY)
Filed on Nov. 14, 2022, as Appl. No. 18/055,129.
Claims priority of application No. 202210112142.1 (CN), filed on Jan. 29, 2022.
Prior Publication US 2023/0297568 A1, Sep. 21, 2023
Int. Cl. G06F 16/242 (2019.01); G06F 16/23 (2019.01); G06F 16/28 (2019.01)
CPC G06F 16/244 (2019.01) [G06F 16/2358 (2019.01); G06F 16/289 (2019.01)] 18 Claims
OG exemplary drawing
 
1. A method for reset command configuration, applied to an editor of target software, the editor is configured with a command inputting module, and the command inputting module is used to input a startGroup command, an endGroup command, a snapshot capture command and an operation execution command for executing command-type configuration; the method comprises:
starting a command group storage unit and starting a snapshot session in response to the inputted startGroup command;
putting at least one target object into the snapshot session in response to the inputted snapshot capture command, wherein each target object corresponds to an instance of a data class in the target software;
updating a status of each target object in the snapshot session based on a simulation operation;
in response to the inputted endGroup command, closing the snapshot session, extracting each target object from the snapshot session to obtain change information of each target object before and after updating, generating a command pair for each target object according to the change information, pressing the command pair into the command group storage unit, and closing the command group storage unit; and
pressing a reset command into a reset command stack of the target software by using all command groups of the command pair in the command group storage unit as the reset command, for a user to perform an undo operation or a redo operation when using the target software.