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")
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()
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)
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)
def select_page(self, page_name): select_in_tree(self.tree, 0, page_name)
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")
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()
def select_page(self, page_name): select_in_tree(self.tree, 0, page_name)