1 """Base Command class"""
2 from __future__
import division
, absolute_import
, unicode_literals
6 """Mixin interface for commands"""
11 """Return the command's name"""
16 """Can this be undone?"""
19 # pylint: disable=no-self-use
21 """Execute the command"""
24 # pylint: disable=no-self-use
26 """Undo the command"""
30 class ContextCommand(Command
):
31 """Base class for commands that operate on a context"""
33 def __init__(self
, context
):
34 self
.context
= context
35 self
.model
= context
.model
36 self
.cfg
= context
.cfg
37 self
.git
= context
.git
38 self
.selection
= context
.selection
39 self
.fsmonitor
= context
.fsmonitor