コード例 #1
0
    def run(self):
        self.view = self.window.active_view()
        key = ViewCollection.get_key(self.view)
        self.handler = ViewCollection.views[key]

        self.results = self.commit_list()
        if self.results:
            self.window.show_quick_panel(self.results, self.on_select)
コード例 #2
0
ファイル: git_gutter_compare.py プロジェクト: than/GitGutter
    def run(self):
        self.view = self.window.active_view()
        key = ViewCollection.get_key(self.view)
        self.handler = ViewCollection.views[key]

        self.results = self.commit_list()
        if self.results:
            self.window.show_quick_panel(self.results, self.on_select)
コード例 #3
0
ファイル: allPythonContent.py プロジェクト: Mondego/pyreco
 def add(view):
     key = ViewCollection.get_key(view)
     try:
         from GitGutter.git_gutter_handler import GitGutterHandler
     except ImportError:
         from git_gutter_handler import GitGutterHandler
     handler = ViewCollection.views[key] = GitGutterHandler(view)
     handler.reset()
     return handler
コード例 #4
0
 def add(view):
     key = ViewCollection.get_key(view)
     try:
         from GitGutter.git_gutter_handler import GitGutterHandler
     except ImportError:
         from git_gutter_handler import GitGutterHandler
     handler = ViewCollection.views[key] = GitGutterHandler(view)
     handler.reset()
     return handler
コード例 #5
0
ファイル: allPythonContent.py プロジェクト: Mondego/pyreco
 def git_path(view):
     key = ViewCollection.get_key(view)
     if key in ViewCollection.views:
         return ViewCollection.views[key].get_git_path()
     else:
         return False
コード例 #6
0
ファイル: allPythonContent.py プロジェクト: Mondego/pyreco
 def update_git_time(view):
     key = ViewCollection.get_key(view)
     ViewCollection.git_times[key] = time.time()
コード例 #7
0
ファイル: allPythonContent.py プロジェクト: Mondego/pyreco
 def git_time(view):
     key = ViewCollection.get_key(view)
     if not key in ViewCollection.git_times:
         ViewCollection.git_times[key] = 0
     return time.time() - ViewCollection.git_times[key]
コード例 #8
0
ファイル: allPythonContent.py プロジェクト: Mondego/pyreco
 def ignored(view):
     key = ViewCollection.get_key(view)
     return ViewCollection.views[key].ignored()
コード例 #9
0
ファイル: allPythonContent.py プロジェクト: Mondego/pyreco
 def diff(view):
     key = ViewCollection.get_key(view)
     return ViewCollection.views[key].diff()
コード例 #10
0
 def ignored(view):
     key = ViewCollection.get_key(view)
     return ViewCollection.views[key].ignored()
コード例 #11
0
 def untracked(view):
     key = ViewCollection.get_key(view)
     return ViewCollection.views[key].untracked()
コード例 #12
0
 def diff(view):
     key = ViewCollection.get_key(view)
     return ViewCollection.views[key].diff()
コード例 #13
0
 def get_handler(view):
     if ViewCollection.has_view(view):
         key = ViewCollection.get_key(view)
         return ViewCollection.views[key]
     else:
         return ViewCollection.add(view)
コード例 #14
0
 def has_view(view):
     key = ViewCollection.get_key(view)
     return key in ViewCollection.views
コード例 #15
0
 def git_path(view):
     key = ViewCollection.get_key(view)
     if key in ViewCollection.views:
         return ViewCollection.views[key].get_git_path()
     else:
         return False
コード例 #16
0
ファイル: allPythonContent.py プロジェクト: Mondego/pyreco
 def has_view(view):
     key = ViewCollection.get_key(view)
     return key in ViewCollection.views
コード例 #17
0
ファイル: allPythonContent.py プロジェクト: Mondego/pyreco
 def get_handler(view):
     if ViewCollection.has_view(view):
         key = ViewCollection.get_key(view)
         return ViewCollection.views[key]
     else:
         return ViewCollection.add(view)
コード例 #18
0
 def total_lines(view):
     key = ViewCollection.get_key(view)
     return ViewCollection.views[key].total_lines()
コード例 #19
0
ファイル: allPythonContent.py プロジェクト: Mondego/pyreco
 def untracked(view):
     key = ViewCollection.get_key(view)
     return ViewCollection.views[key].untracked()
コード例 #20
0
 def git_time(view):
     key = ViewCollection.get_key(view)
     if not key in ViewCollection.git_times:
         ViewCollection.git_times[key] = 0
     return time.time() - ViewCollection.git_times[key]
コード例 #21
0
ファイル: allPythonContent.py プロジェクト: Mondego/pyreco
 def total_lines(view):
     key = ViewCollection.get_key(view)
     return ViewCollection.views[key].total_lines()
コード例 #22
0
 def clear_git_time(view):
     key = ViewCollection.get_key(view)
     ViewCollection.git_times[key] = 0
コード例 #23
0
ファイル: allPythonContent.py プロジェクト: Mondego/pyreco
 def clear_git_time(view):
     key = ViewCollection.get_key(view)
     ViewCollection.git_times[key] = 0
コード例 #24
0
 def update_git_time(view):
     key = ViewCollection.get_key(view)
     ViewCollection.git_times[key] = time.time()
コード例 #25
0
ファイル: allPythonContent.py プロジェクト: Mondego/pyreco
 def buf_tmp_file(view):
     key = ViewCollection.get_key(view)
     if not key in ViewCollection.buf_files:
         ViewCollection.buf_files[key] = tempfile.NamedTemporaryFile()
         ViewCollection.buf_files[key].close()
     return ViewCollection.buf_files[key]
コード例 #26
0
 def buf_tmp_file(view):
     key = ViewCollection.get_key(view)
     if not key in ViewCollection.buf_files:
         ViewCollection.buf_files[key] = tempfile.NamedTemporaryFile()
         ViewCollection.buf_files[key].close()
     return ViewCollection.buf_files[key]