Commands are used to perform all of the user's undoable changes.
命令用于执行用户的所有可撤销的更改。
Because specifying undoable operations is such a common need, the syntax becomes important.
因为指定可撤销的操作是一个常见需求,所以这个语法变得很重要。
Theoretical physics tells us that every operation on quantum bits (except for measurement) must be undoable.
理论物理学告诉我们对量子位进行的所有操作(除了测量以外)必须可撤消。
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模式,那么既可以保留对虚拟机的更改,也可以放弃这一更改。
Encapsulate a request as an object, thereby letting you parameterize clients with different requests, queue or log requests, and support undoable operations.
将一个请求封装为一个对象,从而使你可用不同的请求对客户进行参数化;对请求排队或记录请求日志,以及支持可撤销的操作。
修复操作是不可撤销的!
An undo unit represents a single unit of undoable work.
复原单位表示一个可复原工作的单位。
As a result, the undo engine has control over the duration of an undoable action.
因此,复原引擎能控制可复原动作的持续期间。
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.
将一个请求封装成一个对象,从而让你使用不同的请求把客户端参数化,对请求排队或者记录日志,可以提供命令的撤销和恢复功能。
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.
命令模式:将“请求”封装成对象,以便使用不同的请求队列或者日志来参数化其他对象。命令模式也支持可撤销的操作。
Of course, if an application confidently does something that a user doesn't like, it must have the capability to reverse the operation. Every aspect of the program's action must be undoable.
当然,如果程序自信地做了用户不乐意的事,必须有能力执行撤销操作,程序行为的每个方面都必须是可撤销的。
Of course, if an application confidently does something that a user doesn't like, it must have the capability to reverse the operation. Every aspect of the program's action must be undoable.
当然,如果程序自信地做了用户不乐意的事,必须有能力执行撤销操作,程序行为的每个方面都必须是可撤销的。
应用推荐