예제 #1
0
    def stage(self, files):
        """
        Stage one or more files for commit, by clicking in the tree

        :param [GPS.File] files:
        """
        for f in files:
            select_in_tree(self.tree, column=Commits.COLUMN_FILE, key=f)
        GPS.execute_action("vcs toggle stage selected files")
        yield hook("vcs_file_status_finished")
예제 #2
0
    def yield_select_in_messages(self, entity):
        """
        Select the given entity in the message's report

        :param entity: The entity's name
        """
        self.messages_report.get_selection().unselect_all()
        yield wait_idle()

        select_in_tree(self.messages_report,
                       AnalysisReport.MessagesReportColumn.ENTITY_NAME, entity)
        yield wait_idle()
예제 #3
0
    def select_page(self, page_name):
        """
        Select the given page in the Build Targets editor tree view.

        Here is a simple example showing how to select a page in
        the editor:

            # open the editor first
            editor = GPS.BuildTargetsEditor()
            yield editor.open_and_yield()

            # select the wanted page
            editor.select_page("Build All")
        """

        select_in_tree(self.tree, 1, page_name)
예제 #4
0
    def select_page(self, page_name):
        """
        Select the given page in the Build Targets editor tree view.

        Here is a simple example showing how to select a page in
        the editor:

            # open the editor first
            editor = GPS.BuildTargetsEditor()
            yield editor.open_and_yield()

            # select the wanted page
            editor.select_page("Build All")
        """

        select_in_tree(self.tree, 1, page_name)
예제 #5
0
 def select_page(self, page_name):
     select_in_tree(self.tree, 0, page_name)
예제 #6
0
 def stage_via_name(self, names):
     for name in names:
         select_in_tree(self.tree, column=Commits.COLUMN_NAME, key=name)
     GPS.execute_action("vcs toggle stage selected files")
     yield hook("vcs_file_status_finished")
예제 #7
0
파일: vcs.py 프로젝트: spanners/GNATstudio
 def stage_via_name(self, names):
     for name in names:
         select_in_tree(self.tree, column=Commits.COLUMN_NAME, key=name)
     GPS.execute_action("vcs toggle stage selected files")
     yield wait_tasks()
예제 #8
0
 def select_page(self, page_name):
     select_in_tree(self.tree, 0, page_name)