parameters: (self, multifileinterpreter, main_window=None, globalfiguremanager=None)
docstring: Project Recovery class is aimed at allowing you to recovery your workbench project should you crash for whatever
           reason
          :param multifileinterpreter: MultiPythonFileInterpreter; An object that is used in workbench to represent the
          python script editor
          :param main_window: A reference to the main window object to be used as a parent to the project recovery GUIs
          :param globalfiguremanager: Based on the globalfiguremanager object expects an object with a dictionary on
          cls/self.figs for the object passed here which contains all of the plots open/needed to be saved
docstring_summary: Project Recovery class is aimed at allowing you to recovery your workbench project should you crash for whatever
           reason
          :param multifileinterpreter: MultiPythonFileInterpreter; An object that is used in workbench to represent the
          python script editor
          :param main_window: A reference to the main window object to be used as a parent to the project recovery GUIs
          :param globalfiguremanager: Based on the globalfiguremanager object expects an object with a dictionary on
          cls/self.figs for the object passed here which contains all of the plots open/needed to be saved
docstring_tokens: Project Recovery class is aimed at allowing you to recovery your workbench project should you crash for whatever reason : param multifileinterpreter : MultiPythonFileInterpreter ; An object that is used in workbench to represent the python script editor : param main_window : A reference to the main window object to be used as a parent to the project recovery GUIs : param globalfiguremanager : Based on the globalfiguremanager object expects an object with a dictionary on cls / self . figs for the object passed here which contains all of the plots open / needed to be saved
function: def __init__(self, multifileinterpreter, main_window=None, globalfiguremanager=None):
          """
          Project Recovery class is aimed at allowing you to recovery your workbench project should you crash for whatever
           reason
          :param multifileinterpreter: MultiPythonFileInterpreter; An object that is used in workbench to represent the
          python script editor
          :param main_window: A reference to the main window object to be used as a parent to the project recovery GUIs
          :param globalfiguremanager: Based on the globalfiguremanager object expects an object with a dictionary on
          cls/self.figs for the object passed here which contains all of the plots open/needed to be saved
          """
          self._recovery_directory = os.path.join(ConfigService.getAppDataDirectory(),
                                                  self.recovery_workbench_recovery_name)
          self._recovery_directory_hostname = os.path.join(self.recovery_directory, socket.gethostname())
          self._recovery_directory_pid = os.path.join(self.recovery_directory_hostname, str(os.getpid()))
  
          self._recovery_order_workspace_history_file = os.path.join(ConfigService.getAppDataDirectory(),
                                                                     self.recovery_ordered_recovery_file_name)
  
          self.recovery_enabled = ("true" == ConfigService[RECOVERY_ENABLED_KEY].lower())
          self.maximum_num_checkpoints = int(ConfigService[NO_OF_CHECKPOINTS_KEY])
          self.time_between_saves = int(ConfigService[SAVING_TIME_KEY])  # seconds
  
          # The recovery GUI's presenter is set when needed
          self.recovery_presenter = None
  
          self.thread_on = False
  
          # Set to true by workbench on close to kill the thread on completion of project save
          self.closing_workbench = False
  
          # Recovery loader and saver
          self.loader = ProjectRecoveryLoader(self, multi_file_interpreter=multifileinterpreter, main_window=main_window)
          self.saver = ProjectRecoverySaver(self, globalfiguremanager)
function_tokens: def __init__ ( self , multifileinterpreter , main_window = None , globalfiguremanager = None ) : self . _recovery_directory = os . path . join ( ConfigService . getAppDataDirectory ( ) , self . recovery_workbench_recovery_name ) self . _recovery_directory_hostname = os . path . join ( self . recovery_directory , socket . gethostname ( ) ) self . _recovery_directory_pid = os . path . join ( self . recovery_directory_hostname , str ( os . getpid ( ) ) ) self . _recovery_order_workspace_history_file = os . path . join ( ConfigService . getAppDataDirectory ( ) , self . recovery_ordered_recovery_file_name ) self . recovery_enabled = ( "true" == ConfigService [ RECOVERY_ENABLED_KEY ] . lower ( ) ) self . maximum_num_checkpoints = int ( ConfigService [ NO_OF_CHECKPOINTS_KEY ] ) self . time_between_saves = int ( ConfigService [ SAVING_TIME_KEY ] ) # seconds # The recovery GUI's presenter is set when needed self . recovery_presenter = None self . thread_on = False # Set to true by workbench on close to kill the thread on completion of project save self . closing_workbench = False # Recovery loader and saver self . loader = ProjectRecoveryLoader ( self , multi_file_interpreter = multifileinterpreter , main_window = main_window ) self . saver = ProjectRecoverySaver ( self , globalfiguremanager )