Making this function undoable would also be relatively easy to implement and highly desirable.
让该功能本身也可以撤销,这样会相对容易实现,也会更加理想。
Encapsulate a request as an object, thereby letting you parameterize clients with different requests, queue or log requests, and support undoable operations.
将请求压缩为对象,使您能用不同的请求,队列或日志请求,参数化客户机,并支持可撤销的操作。
Enables the ability to undo actions that occur within undoable action units or transactions.
启用撤消在无法撤消的操作单元或事务内发生的操作的能力。
Also, because transactions can be named, undoable actions inherit their names from the current transaction.
另外,因为可以为异动命名,所以可复原动作会从目前的异动继承其名称。
Encapsulate a request as an object, thereby letting you parameterize clients with different requests, queue or log requests, and support undoable operations.
将一个请求封装成一个对象,从而让你使用不同的请求把客户端参数化,对请求排队或者记录日志,可以提供命令的撤销和恢复功能。
Because specifying undoable operations is such a common need, the syntax becomes important.
因为指定可撤销的操作是一个常见需求,所以这个语法变得很重要。
The Command Pattern: encapsulates a request as an object, thereby letting you parameterize other objects with different requests, queue or log requests, and support undoable operations.
命令模式:将「请求」封装成对象,以便使用不同的请求队列或者日志来参数化其他对象。命令模式也支持可撤销的操作。
The worst confirmations are those of undoable actions, such as moving a file to the Recycle Bin.
最坏的确认过程是那些可恢复的操作,例如移动文件到回收站中。
An undo unit represents a single unit of undoable work.
复原单位表示一个可复原工作的单位。
Encapsulate a request as an object, thereby letting you parameterize clients with different requests, queue or log requests, and support undoable operations.
将一个请求封装为一个对象,从而使你可用不同的请求对客户进行参数化;对请求排队或记录请求日志,以及支持可撤销的操作。
When you use undoable mode for your virtual machine, it allows you to either keep or discard the changes you made to the virtual machine.
如果为虚拟机使用undoable模式,那么既可以保留对虚拟机的更改,也可以放弃这一更改。
As a result, the undo engine has control over the duration of an undoable action.
因此,复原引擎能控制可复原动作的持续期间。
The code bellow defined CreateFile and CopyFile two classes, use Command patten and Composite patten log requests, and support undoable operations.
下面的例子定义了 创建文件和拷贝文件两个类,使用命令模式和组合模式记录日志,并实现逆操作。
Commands are used to perform all of the user's undoable changes.
命令用于执行用户的所有可撤销的更改。