Пример #1
0
    def __init__(self, view):
        self.view = view
        # We use several types of settings:
        #   - vi-specific (settings.vi),
        #   - regular ST view settings (settings.view) and
        #   - window settings (settings.window).
        self.settings = SettingsManager(self.view)

        _logger().debug(
            '[State] Is .view an ST/Vintageous widget? {0}/{1}'.format(
                bool(self.settings.view['is_widget']),
                bool(self.settings.view['is_vintageous_widget'])))
Пример #2
0
    def __init__(self, view):
        self.view = view
        # We have multiple types of settings: vi-specific (settings.vi) and
        # regular ST view settings (settings.view) and window settings
        # (settings.window).
        # TODO: Make this a descriptor. Why isn't it?
        self.settings = SettingsManager(self.view)

        _logger().info(
            '[State] is .view an ST:Vintageous widget: {0}:{1}'.format(
                bool(self.settings.view['is_widget']),
                bool(self.settings.view['is_vintageous_widget'])))
Пример #3
0
 def setUp(self):
     super().setUp()
     self.view.settings().erase('vintage')
     self.settsman = SettingsManager(view=self.view)
Пример #4
0
 def __init__(self, view):
     self.view = view
     # We have two types of settings: vi-specific (settings.vi) and regular ST view settings
     # (settings.view).
     self.settings = SettingsManager(self.view)
Пример #5
0
 def setUp(self):
     TestsState.view.settings().erase('vintage')
     self.settsman = SettingsManager(view=TestsState.view)