当前位置: 首页>>代码示例>>Python>>正文


Python ViewCollection.add方法代码示例

本文整理汇总了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)
开发者ID:Mondego,项目名称:pyreco,代码行数:10,代码来源:allPythonContent.py

示例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)
开发者ID:yesbox,项目名称:GitGutter,代码行数:16,代码来源:git_gutter_events.py

示例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)
开发者ID:Mondego,项目名称:pyreco,代码行数:6,代码来源:allPythonContent.py

示例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)
开发者ID:Mondego,项目名称:pyreco,代码行数:6,代码来源:allPythonContent.py

示例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)
开发者ID:Mondego,项目名称:pyreco,代码行数:6,代码来源:allPythonContent.py

示例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)
开发者ID:Bengt,项目名称:GitGutter,代码行数:5,代码来源:git_gutter_events.py

示例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)
开发者ID:gist-github,项目名称:sublime-config,代码行数:5,代码来源:git_gutter_events.py

示例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)
开发者ID:gist-github,项目名称:sublime-config,代码行数:5,代码来源:git_gutter_events.py

示例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)
开发者ID:gist-github,项目名称:sublime-config,代码行数:5,代码来源:git_gutter_events.py

示例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)
开发者ID:CarterTsai,项目名称:sublime2packages,代码行数:5,代码来源:git_gutter_events.py

示例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)
开发者ID:CarterTsai,项目名称:sublime2packages,代码行数:4,代码来源:git_gutter_events.py

示例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)
开发者ID:CarterTsai,项目名称:sublime2packages,代码行数:4,代码来源:git_gutter_events.py

示例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)
开发者ID:CarterTsai,项目名称:sublime2packages,代码行数:4,代码来源:git_gutter_events.py

示例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)
开发者ID:unphased,项目名称:GitGutter,代码行数:5,代码来源:git_gutter_events.py

示例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
开发者ID:yesbox,项目名称:GitGutter,代码行数:5,代码来源:git_gutter_events.py


注:本文中的GitGutter.view_collection.ViewCollection.add方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。