1 """Base Command class"""
2 from __future__
import division
, absolute_import
, unicode_literals
6 """Mixin interface for commands"""
12 """Return the command's name"""
17 """Can this be undone?"""
20 # pylint: disable=no-self-use
22 """Execute the command"""
25 # pylint: disable=no-self-use
27 """Undo the command"""
31 class ContextCommand(Command
):
32 """Base class for commands that operate on a context"""
34 def __init__(self
, context
):
35 self
.context
= context
36 self
.model
= context
.model
37 self
.cfg
= context
.cfg
38 self
.git
= context
.git
39 self
.selection
= context
.selection
40 self
.fsmonitor
= context
.fsmonitor