本文整理汇总了Python中GitGutter.view_collection.ViewCollection.add方法的典型用法代码示例。如果您正苦于以下问题:Python ViewCollection.add方法的具体用法?Python ViewCollection.add怎么用?Python ViewCollection.add使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类GitGutter.view_collection.ViewCollection
的用法示例。
在下文中一共展示了ViewCollection.add方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: on_select
# 需要导入模块: from GitGutter.view_collection import ViewCollection [as 别名]
# 或者: from GitGutter.view_collection.ViewCollection import add [as 别名]
def on_select(self, selected):
if 0 > selected < len(self.results):
return
item = self.results[selected]
commit = self.item_to_commit(item)
ViewCollection.set_compare(commit)
ViewCollection.clear_git_time(self.view)
ViewCollection.add(self.view)
示例2: on_modified
# 需要导入模块: from GitGutter.view_collection import ViewCollection [as 别名]
# 或者: from GitGutter.view_collection.ViewCollection import add [as 别名]
def on_modified(self, view):
if not self.live_mode:
return None
if not self.non_blocking:
if not self.live_delay:
ViewCollection.add(view)
elif not self.delayed_update_scheduled:
if self.allow_instant_update:
self.allow_instant_update = False
sublime.set_timeout(lambda: self.delayed_update(view), 10)
sublime.set_timeout(lambda: self.enable_instant_update(), self.live_instant_interval)
else:
self.delayed_update_scheduled = True
sublime.set_timeout(lambda: self.delayed_update(view), self.live_continuous_delay)
示例3: on_activated
# 需要导入模块: from GitGutter.view_collection import ViewCollection [as 别名]
# 或者: from GitGutter.view_collection.ViewCollection import add [as 别名]
def on_activated(self, view):
if self.settings_loaded():
if not self.non_blocking and self.focus_change_mode:
ViewCollection.add(view)
示例4: on_load
# 需要导入模块: from GitGutter.view_collection import ViewCollection [as 别名]
# 或者: from GitGutter.view_collection.ViewCollection import add [as 别名]
def on_load(self, view):
if self.settings_loaded():
if not self.non_blocking and not self.live_mode:
ViewCollection.add(view)
示例5: on_post_save
# 需要导入模块: from GitGutter.view_collection import ViewCollection [as 别名]
# 或者: from GitGutter.view_collection.ViewCollection import add [as 别名]
def on_post_save(self, view):
if self.settings_loaded():
if not self.non_blocking:
ViewCollection.add(view)
示例6: on_activated_async
# 需要导入模块: from GitGutter.view_collection import ViewCollection [as 别名]
# 或者: from GitGutter.view_collection.ViewCollection import add [as 别名]
def on_activated_async(self, view):
if self.non_blocking:
ViewCollection.add(view)
示例7: on_load_async
# 需要导入模块: from GitGutter.view_collection import ViewCollection [as 别名]
# 或者: from GitGutter.view_collection.ViewCollection import add [as 别名]
def on_load_async(self, view):
if self.non_blocking and not self.live_mode:
ViewCollection.add(view)
示例8: on_clone_async
# 需要导入模块: from GitGutter.view_collection import ViewCollection [as 别名]
# 或者: from GitGutter.view_collection.ViewCollection import add [as 别名]
def on_clone_async(self, view):
if self.non_blocking:
ViewCollection.add(view)
示例9: on_post_save
# 需要导入模块: from GitGutter.view_collection import ViewCollection [as 别名]
# 或者: from GitGutter.view_collection.ViewCollection import add [as 别名]
def on_post_save(self, view):
if not self.non_blocking:
ViewCollection.add(view)
示例10: on_modified
# 需要导入模块: from GitGutter.view_collection import ViewCollection [as 别名]
# 或者: from GitGutter.view_collection.ViewCollection import add [as 别名]
def on_modified(self, view):
if view.settings().get('git_gutter_live_mode', True):
ViewCollection.add(view)
示例11: on_activated
# 需要导入模块: from GitGutter.view_collection import ViewCollection [as 别名]
# 或者: from GitGutter.view_collection.ViewCollection import add [as 别名]
def on_activated(self, view):
ViewCollection.add(view)
示例12: on_post_save
# 需要导入模块: from GitGutter.view_collection import ViewCollection [as 别名]
# 或者: from GitGutter.view_collection.ViewCollection import add [as 别名]
def on_post_save(self, view):
ViewCollection.add(view)
示例13: on_clone
# 需要导入模块: from GitGutter.view_collection import ViewCollection [as 别名]
# 或者: from GitGutter.view_collection.ViewCollection import add [as 别名]
def on_clone(self, view):
ViewCollection.add(view)
示例14: on_modified
# 需要导入模块: from GitGutter.view_collection import ViewCollection [as 别名]
# 或者: from GitGutter.view_collection.ViewCollection import add [as 别名]
def on_modified(self, view):
if self.live_mode:
ViewCollection.add(view)
示例15: delayed_update
# 需要导入模块: from GitGutter.view_collection import ViewCollection [as 别名]
# 或者: from GitGutter.view_collection.ViewCollection import add [as 别名]
def delayed_update(self, view):
ViewCollection.add(view)
self.delayed_update_scheduled = False