def OnOpenTestSuite(self, event): if not self.check_unsaved_modifications(): return path = RobotFilePathDialog(self, self._controller, self._application.settings).execute() if path: if self.open_suite(path): return from robotide.editor import customsourceeditor customsourceeditor.main(path)
def OnOpenTestSuite(self, event): if not self.check_unsaved_modifications(): return path = RobotFilePathDialog( self, self._controller, self._application.settings).execute() if path: try: self.open_suite(path) return except UserWarning as e: pass from robotide.editor import customsourceeditor customsourceeditor.main(path)
def OnOpenFile(self, event): # EVT_DIRCTRL_FILEACTIVATED from os.path import splitext robottypes = self._application.settings.get( 'robot types', ['robot', 'txt', 'tsv', 'html']) path = self.filemgr.GetFilePath() ext = splitext(path) ext = ext[1].replace('.', '') # print("DEBUG: path %s ext %s" % (path, ext)) if ext in robottypes: if not self.check_unsaved_modifications(): return try: self.open_suite(path) return except UserWarning as e: pass from robotide.editor import customsourceeditor customsourceeditor.main(path)
def OnOpenFile(self, event): # EVT_DIRCTRL_FILEACTIVATED from os.path import splitext robottypes = self._application.settings.get('robot types', ['robot', 'txt', 'tsv', 'html']) path = self.filemgr.GetFilePath() ext = splitext(path) ext = ext[1].replace('.', '') # print("DEBUG: path %s ext %s" % (path, ext)) if ext in robottypes: if not self.check_unsaved_modifications(): return try: self.open_suite(path) return except UserWarning as e: pass from robotide.editor import customsourceeditor customsourceeditor.main(path)