Exemplo n.º 1
0
 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)
Exemplo n.º 2
0
 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)
Exemplo n.º 3
0
 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)
Exemplo n.º 4
0
 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)